Bug 793140 - Replace 'NS_OK' with 'true', r=qdot
authorEric Chou <echou@mozilla.com>
Sat, 22 Sep 2012 00:16:43 +0800
changeset 107699 a80eea52a1794183a7c1b57eeb56db2913107082
parent 107698 63d670f5bde168525ba8424eb912b2dc5a4d76a7
child 107700 c0ccd183b2760f2a5e890b2b70e4ae12e59d4729
push id15182
push userechou@mozilla.com
push dateFri, 21 Sep 2012 16:17:53 +0000
treeherdermozilla-inbound@a80eea52a179 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot
bugs793140
milestone18.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 793140 - Replace 'NS_OK' with 'true', r=qdot
dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp
--- a/dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp
+++ b/dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp
@@ -225,60 +225,60 @@ BluetoothServiceChildProcess::CloseSocke
 bool
 BluetoothServiceChildProcess::SetPinCodeInternal(
                                                 const nsAString& aDeviceAddress,
                                                 const nsAString& aPinCode,
                                                 BluetoothReplyRunnable* aRunnable)
 {
   SendRequest(aRunnable,
               SetPinCodeRequest(nsString(aDeviceAddress), nsString(aPinCode)));
-  return NS_OK;
+  return true;
 }
 
 bool
 BluetoothServiceChildProcess::SetPasskeyInternal(
                                                 const nsAString& aDeviceAddress,
                                                 uint32_t aPasskey,
                                                 BluetoothReplyRunnable* aRunnable)
 {
   SendRequest(aRunnable,
               SetPasskeyRequest(nsString(aDeviceAddress), aPasskey));
-  return NS_OK;
+  return true;
 }
 
 bool
 BluetoothServiceChildProcess::SetPairingConfirmationInternal(
                                                 const nsAString& aDeviceAddress,
                                                 bool aConfirm,
                                                 BluetoothReplyRunnable* aRunnable)
 {
   if(aConfirm) {
     SendRequest(aRunnable,
                 ConfirmPairingConfirmationRequest(nsString(aDeviceAddress)));
   } else {
     SendRequest(aRunnable,
                 DenyPairingConfirmationRequest(nsString(aDeviceAddress)));
   }
-  return NS_OK;
+  return true;
 }
 
 bool
 BluetoothServiceChildProcess::SetAuthorizationInternal(
                                                 const nsAString& aDeviceAddress,
                                                 bool aAllow,
                                                 BluetoothReplyRunnable* aRunnable)
 {
   if(aAllow) {
     SendRequest(aRunnable,
                 ConfirmAuthorizationRequest(nsString(aDeviceAddress)));
   } else {
     SendRequest(aRunnable,
                 DenyAuthorizationRequest(nsString(aDeviceAddress)));
   }
-  return NS_OK;
+  return true;
 }
 
 nsresult
 BluetoothServiceChildProcess::PrepareAdapterInternal(const nsAString& aPath)
 {
   MOZ_NOT_REACHED("Should never be called from child");
   return NS_ERROR_NOT_IMPLEMENTED;
 }