Index: device/bluetooth/bluetooth_gatt_connection_chromeos.cc |
diff --git a/device/bluetooth/bluetooth_gatt_connection_chromeos.cc b/device/bluetooth/bluetooth_gatt_connection_chromeos.cc |
index b0551cff1dc16295e7f991ee756e9cbd13568087..7dd8bdc7f33c7a3c6edabc9a2292fdece960129a 100644 |
--- a/device/bluetooth/bluetooth_gatt_connection_chromeos.cc |
+++ b/device/bluetooth/bluetooth_gatt_connection_chromeos.cc |
@@ -99,6 +99,11 @@ void BluetoothGattConnectionChromeOS::DevicePropertyChanged( |
if (property_name == properties->connected.name() && |
!properties->connected.value()) |
connected_ = false; |
+ |
+ // The remove device's bluetooth address may change if it is paired while |
armansito
2015/09/23 06:46:59
nit: "The removed device's.."
sacomoto
2015/09/23 11:27:41
Done.
|
+ // connected. |
+ if (property_name == properties->address.name()) |
+ device_address_ = properties->address.value(); |
armansito
2015/09/23 06:46:59
Won't you need to update the BluetoothDevice objec
sacomoto
2015/09/23 11:27:41
No. Only the DBus |object_path_| (not changed when
|
} |
} // namespace chromeos |