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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

Issue 2625013003: bluetooth: bluez: Fixed issue with missing notifications after reconnect. (Closed)
Patch Set: Added comment about the notification. Created 3 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 04a01298fddc82c5b4fd1a00239393822788f2e1..22c1a0ef99d648820243336368e4de20ec1a4b63 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -222,10 +222,7 @@ void BluetoothDeviceAndroid::OnConnectionStateChange(
} else {
// Otherwise an existing connection was terminated.
RecordConnectionTerminatedResult(status);
- gatt_services_.clear();
- device_uuids_.ClearServiceUUIDs();
- SetGattServicesDiscoveryComplete(false);
- DidDisconnectGatt();
+ DidDisconnectGatt(true /* notifyDeviceChanged */);
}
}

Powered by Google App Engine
This is Rietveld 408576698