Index: device/bluetooth/bluetooth_device_android.cc |
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc |
index 766bd35bedae96a911486d9caa47ba3b8989b166..3363e722954dd5d7637d1bb9fd8628050a35e298 100644 |
--- a/device/bluetooth/bluetooth_device_android.cc |
+++ b/device/bluetooth/bluetooth_device_android.cc |
@@ -223,7 +223,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(); |
} |
} |