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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 1606523002: Tidy up service discovery state for bluez on disconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 05532cc2b071b831cbc744c2d107cf6c07da519f..e3dc817f2548eaa6207ed7a9dfed7a54e2ebe8c8 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -218,6 +218,8 @@ void BluetoothDevice::CreateGattConnection(
void BluetoothDevice::SetGattServicesDiscoveryComplete(bool complete) {
gatt_services_discovery_complete_ = complete;
+ if (!complete)
+ gatt_services_.clear();
ortuno 2016/01/19 17:55:45 We shouldn't be deleting the services on all platf
tommyt 2016/01/20 07:54:08 Done.
}
bool BluetoothDevice::IsGattServicesDiscoveryComplete() const {

Powered by Google App Engine
This is Rietveld 408576698