Bug 1165835: Fix bluetooth2 build break resulting from Bug 1164292. r=btian
authorJocelyn Liu <joliu@mozilla.com>
Mon, 18 May 2015 18:09:11 +0800
changeset 244350 e115d9fb3e04fbdf33766d025658484ee2417330
parent 244349 ba713a5a255fad939cf56e4be20c5970b0965506
child 244351 59dca6d9030c90125cd57c24999c7bb316ae6424
push id28774
push userryanvm@gmail.com
push dateMon, 18 May 2015 20:24:02 +0000
treeherdermozilla-central@3c292fab543d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbtian
bugs1165835, 1164292
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1165835: Fix bluetooth2 build break resulting from Bug 1164292. r=btian
dom/bluetooth/bluetooth2/BluetoothAdapter.cpp
--- a/dom/bluetooth/bluetooth2/BluetoothAdapter.cpp
+++ b/dom/bluetooth/bluetooth2/BluetoothAdapter.cpp
@@ -978,17 +978,17 @@ BluetoothAdapter::IsBluetoothCertifiedAp
   // Retrieve the app status and origin for permission checking
   nsCOMPtr<nsIDocument> doc = GetOwner()->GetExtantDoc();
   NS_ENSURE_TRUE(doc, false);
 
   uint16_t appStatus = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
   nsAutoCString appOrigin;
 
   doc->NodePrincipal()->GetAppStatus(&appStatus);
-  doc->NodePrincipal()->GetOrigin(getter_Copies(appOrigin));
+  doc->NodePrincipal()->GetOrigin(appOrigin);
 
   return appStatus == nsIPrincipal::APP_STATUS_CERTIFIED &&
          appOrigin.EqualsLiteral(BLUETOOTH_APP_ORIGIN);
 }
 
 void
 BluetoothAdapter::SetAdapterState(BluetoothAdapterState aState)
 {