Index: device/bluetooth/bluetooth_device.cc |
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc |
index 7d37591f5ea21483e15af7ab315436d3e8a6e70e..4d7dc17a32be5d7c1a8de193bb1a74e325659e72 100644 |
--- a/device/bluetooth/bluetooth_device.cc |
+++ b/device/bluetooth/bluetooth_device.cc |
@@ -335,6 +335,7 @@ void BluetoothDevice::DidConnectGatt() { |
} |
create_gatt_connection_success_callbacks_.clear(); |
create_gatt_connection_error_callbacks_.clear(); |
+ GetAdapter()->NotifyDeviceChanged(this); |
} |
void BluetoothDevice::DidFailToConnectGatt(ConnectErrorCode error) { |
@@ -358,6 +359,7 @@ void BluetoothDevice::DidDisconnectGatt() { |
connection->InvalidateConnectionReference(); |
} |
gatt_connections_.clear(); |
+ GetAdapter()->NotifyDeviceChanged(this); |
} |
void BluetoothDevice::AddGattConnection(BluetoothGattConnection* connection) { |