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

Unified Diff: device/bluetooth/bluez/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: 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
« no previous file with comments | « AUTHORS ('k') | device/bluetooth/bluez/bluetooth_device_bluez.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluez/bluetooth_adapter_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
index 944c10ec75ed558efd99cbd0d15213dc2b4760d8..0fc4a44bc0d1f86f207b1a6cca96898c029c32d0 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
@@ -524,8 +524,8 @@ void BluetoothAdapterBlueZ::DevicePropertyChanged(
NotifyDeviceChanged(device_bluez);
}
- if (property_name == properties->gatt_services.name()) {
- device_bluez->SetGattServicesDiscoveryComplete(true);
+ if (property_name == properties->services_resolved.name() &&
+ properties->services_resolved.value()) {
NotifyGattServicesDiscovered(device_bluez);
}
@@ -546,8 +546,6 @@ void BluetoothAdapterBlueZ::DevicePropertyChanged(
if (properties->connected.value()) {
if (device_bluez->IsTrustable() && !properties->trusted.value())
device_bluez->SetTrusted();
- } else {
- device_bluez->SetGattServicesDiscoveryComplete(false);
}
int count = 0;
« no previous file with comments | « AUTHORS ('k') | device/bluetooth/bluez/bluetooth_device_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698