| Index: device/bluetooth/bluetooth_device_android.cc
|
| diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
|
| index ebd78318e52c0bef7a4338feb9edc3a81dcf5bfa..be9d6b874d984ec26372497c2efae16a04935a7c 100644
|
| --- a/device/bluetooth/bluetooth_device_android.cc
|
| +++ b/device/bluetooth/bluetooth_device_android.cc
|
| @@ -210,6 +210,9 @@ void BluetoothDeviceAndroid::OnConnectionStateChange(
|
| if (gatt_connected_) {
|
| DidConnectGatt();
|
| } else {
|
| + gatt_services_.clear();
|
| + SetGattServicesDiscoveryComplete(false);
|
| +
|
| // TODO(scheib) Create new BluetoothDevice::ConnectErrorCode enums for
|
| // android values not yet represented. http://crbug.com/531058
|
| switch (status) { // Constants are from android.bluetooth.BluetoothGatt.
|
| @@ -229,6 +232,7 @@ void BluetoothDeviceAndroid::OnConnectionStateChange(
|
| void BluetoothDeviceAndroid::OnGattServicesDiscovered(
|
| JNIEnv* env,
|
| const JavaParamRef<jobject>& jcaller) {
|
| + SetGattServicesDiscoveryComplete(true);
|
| FOR_EACH_OBSERVER(BluetoothAdapter::Observer, GetAdapter()->GetObservers(),
|
| GattServicesDiscovered(GetAdapter(), this));
|
| }
|
|
|