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

Unified Diff: device/bluetooth/bluetooth_device_android.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_android.cc
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
index 71ceb666998d4d66ba56ba4138cb005e4fe6c78e..cf585b17d82520fc29cbb5b3095be78b3f393677 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -210,7 +210,6 @@ void BluetoothDeviceAndroid::OnConnectionStateChange(
if (gatt_connected_) {
DidConnectGatt();
} else {
- gatt_services_.clear();
SetGattServicesDiscoveryComplete(false);
switch (status) { // Constants are from android.bluetooth.BluetoothGatt.

Powered by Google App Engine
This is Rietveld 408576698