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

Unified Diff: device/bluetooth/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: bluetooth: replace GattServices D-Bus property with ServicesResolved 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/bluetooth_device_bluez.cc
diff --git a/device/bluetooth/bluetooth_device_bluez.cc b/device/bluetooth/bluetooth_device_bluez.cc
index 5ee49a4c9dd6734288e171c3184b1f1ec558ab8c..584eae89578eb5b264775778f50f4cd920b41593 100644
--- a/device/bluetooth/bluetooth_device_bluez.cc
+++ b/device/bluetooth/bluetooth_device_bluez.cc
@@ -206,6 +206,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));
}

Powered by Google App Engine
This is Rietveld 408576698