| Index: device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc
|
| diff --git a/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc b/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc
|
| index 5f79c2b9c7a2eb6bfc5bbf207908069944768b2c..b1eb68836491f4b2e1105d82ee9d7847627b9dc6 100644
|
| --- a/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc
|
| +++ b/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc
|
| @@ -54,8 +54,8 @@ BluetoothLocalGattServiceBlueZ::BluetoothLocalGattServiceBlueZ(
|
| is_primary_(is_primary),
|
| delegate_(delegate),
|
| weak_ptr_factory_(this) {
|
| - // TODO(rkc): Get base application path from adapter and prefix it here.
|
| - object_path_ = AddGuidToObjectPath("/service");
|
| + object_path_ = AddGuidToObjectPath(
|
| + adapter->GetApplicationObjectPath().value() + "/service");
|
| VLOG(1) << "Creating local GATT service with identifier: "
|
| << object_path_.value();
|
| }
|
| @@ -73,14 +73,14 @@ bool BluetoothLocalGattServiceBlueZ::IsPrimary() const {
|
| void BluetoothLocalGattServiceBlueZ::Register(
|
| const base::Closure& callback,
|
| const ErrorCallback& error_callback) {
|
| - // GetAdapter()->RegisterGattService(this, callback, error_callback);
|
| + GetAdapter()->RegisterGattService(this, callback, error_callback);
|
| }
|
|
|
| void BluetoothLocalGattServiceBlueZ::Unregister(
|
| const base::Closure& callback,
|
| const ErrorCallback& error_callback) {
|
| DCHECK(GetAdapter());
|
| - // GetAdapter()->UnregisterGattService(this, callback, error_callback);
|
| + GetAdapter()->UnregisterGattService(this, callback, error_callback);
|
| }
|
|
|
| const std::vector<std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>&
|
|
|