Bug 808193 - return 'boolean' if PROP_DEVICE_CONNECTED_TYPE is not found, r=qdot
authorEric Chou <echou@mozilla.com>
Mon, 05 Nov 2012 15:48:34 -0800
changeset 112378 f9c2c266e7aacd337d1bdda02af37481bc35170a
parent 112377 4e87d83555011362aac89a0943722a0287b2bd2b
child 112379 2e888de576a82f1e653599069e73234cbcfd2bfb
child 112489 9092b49ef08be4318ee4ea9d5177bfba32835adf
push id17555
push usereakhgari@mozilla.com
push dateTue, 06 Nov 2012 02:50:47 +0000
treeherdermozilla-inbound@2e888de576a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot
bugs808193
milestone19.0a1
first release with
nightly linux32
f9c2c266e7aa / 19.0a1 / 20121106030712 / files
nightly linux64
f9c2c266e7aa / 19.0a1 / 20121106030712 / files
nightly mac
f9c2c266e7aa / 19.0a1 / 20121106030712 / files
nightly win32
f9c2c266e7aa / 19.0a1 / 20121106030712 / files
nightly win64
f9c2c266e7aa / 19.0a1 / 20121106030712 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 808193 - return 'boolean' if PROP_DEVICE_CONNECTED_TYPE is not found, r=qdot
dom/bluetooth/linux/BluetoothDBusService.cpp
--- a/dom/bluetooth/linux/BluetoothDBusService.cpp
+++ b/dom/bluetooth/linux/BluetoothDBusService.cpp
@@ -874,20 +874,19 @@ GetIntCallback(DBusMessage* aMsg, void* 
   RunDBusCallback(aMsg, aBluetoothReplyRunnable,
                   UnpackIntMessage);
 }
 
 bool
 IsDeviceConnectedTypeBoolean()
 {
 #if defined(MOZ_WIDGET_GONK)
-
   char connProp[PROPERTY_VALUE_MAX];
 
-  property_get(PROP_DEVICE_CONNECTED_TYPE, connProp, "array");
+  property_get(PROP_DEVICE_CONNECTED_TYPE, connProp, "boolean");
   if (strcmp(connProp, "boolean") == 0) {
     return true;
   }
   return false;
 #else
   // Assume it's always a boolean on desktop. Fixing someday in Bug 806457.
   return true;
 #endif