Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2422)

Unified Diff: device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc

Issue 1919683002: Adapter changes for implementing local GATT attributes and tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dbus_classes
Patch Set: merge Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>>&
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/test/bluetooth_gatt_server_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698