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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

Issue 2888663002: Revert "bluetooth: bluez: Fixed issue with missing notifications after reconnect." (Closed)
Patch Set: Created 3 years, 7 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 | « device/bluetooth/bluetooth_device.cc ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_android.cc
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
index d8c724cba43b184dcc408a9dd1ee5d4ce7c0b67f..68061503c906372a31c70674dc8d8c0ffc585c4c 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -222,7 +222,10 @@ void BluetoothDeviceAndroid::OnConnectionStateChange(
} else {
// Otherwise an existing connection was terminated.
RecordConnectionTerminatedResult(status);
- DidDisconnectGatt(true /* notifyDeviceChanged */);
+ gatt_services_.clear();
+ device_uuids_.ClearServiceUUIDs();
+ SetGattServicesDiscoveryComplete(false);
+ DidDisconnectGatt();
}
}
« no previous file with comments | « device/bluetooth/bluetooth_device.cc ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698