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

Unified Diff: device/bluetooth/bluetooth_adapter_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_adapter_bluez.cc
diff --git a/device/bluetooth/bluetooth_adapter_bluez.cc b/device/bluetooth/bluetooth_adapter_bluez.cc
index 91345fcaa8534237b000e057c5016e39033443e0..ed538f000f4fd80eb37a54bff01993bdc2f66dca 100644
--- a/device/bluetooth/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluetooth_adapter_bluez.cc
@@ -525,7 +525,8 @@ void BluetoothAdapterBlueZ::DevicePropertyChanged(
NotifyDeviceChanged(device_bluez);
}
- if (property_name == properties->gatt_services.name()) {
+ if (property_name == properties->services_resolved.name() &&
+ properties->services_resolved.value()) {
device_bluez->SetGattServicesDiscoveryComplete(true);
ortuno 2016/04/20 20:19:14 We no longer need to call this.
NotifyGattServicesDiscovered(device_bluez);
}

Powered by Google App Engine
This is Rietveld 408576698