Bug 791436 - [b2g-bluetooth] Readd reserved service reg/unreg for bluetooth, r=qdot

This commit is contained in:
Eric Chou 2012-09-17 14:00:54 +08:00
parent dd95d5c4ab
commit 078c6ba561

View File

@ -560,8 +560,6 @@ RegisterAgent(const nsAString& aAdapterPath)
return true; return true;
} }
static void static void
AddReservedServices(const nsAString& aAdapterPath) AddReservedServices(const nsAString& aAdapterPath)
{ {
@ -999,6 +997,7 @@ EventFilter(DBusConnection* aConn, DBusMessage* aMsg, void* aData)
errorStr.AssignLiteral("Cannot parse manager path!"); errorStr.AssignLiteral("Cannot parse manager path!");
} else { } else {
sDefaultAdapterPath = NS_ConvertUTF8toUTF16(str); sDefaultAdapterPath = NS_ConvertUTF8toUTF16(str);
AddReservedServices(sDefaultAdapterPath);
v = sDefaultAdapterPath; v = sDefaultAdapterPath;
} }
} else if (dbus_message_is_signal(aMsg, DBUS_MANAGER_IFACE, "PropertyChanged")) { } else if (dbus_message_is_signal(aMsg, DBUS_MANAGER_IFACE, "PropertyChanged")) {