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

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

Issue 1862093002: bluetooth: replace GattServices D-Bus property with ServicesResolved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests 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_device_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_device_bluez.cc b/device/bluetooth/bluez/bluetooth_device_bluez.cc
index 73e54871143c0599a4789e551dcd622dbde82343..c835899ae1f69a540bd35135420c6c6dc5f76679 100644
--- a/device/bluetooth/bluez/bluetooth_device_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_device_bluez.cc
@@ -207,6 +207,20 @@ void BluetoothDeviceBlueZ::CreateGattConnectionImpl() {
NOTIMPLEMENTED();
}
+void BluetoothDeviceBlueZ::SetGattServicesDiscoveryComplete(bool complete) {
+ // BlueZ implementation already tracks service discovery state.
+ NOTIMPLEMENTED();
+}
+
+bool BluetoothDeviceBlueZ::IsGattServicesDiscoveryComplete() const {
+ bluez::BluetoothDeviceClient::Properties* properties =
+ bluez::BluezDBusManager::Get()->GetBluetoothDeviceClient()->GetProperties(
+ object_path_);
+ DCHECK(properties);
+
+ return properties->services_resolved.value();
+}
+
void BluetoothDeviceBlueZ::DisconnectGatt() {
Disconnect(base::Bind(&base::DoNothing), base::Bind(&base::DoNothing));
}
« no previous file with comments | « device/bluetooth/bluez/bluetooth_device_bluez.h ('k') | device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698