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

Unified Diff: device/bluetooth/bluetooth_gatt_connection_chromeos.cc

Issue 1351623006: Updating the GATT connection device address when it changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93b9747adcebc1cc8328e05be635f1f647de5158..0c46619fc861a501e0eb5fc4f54e8306324b8cbd 100644
--- a/device/bluetooth/bluetooth_gatt_connection_chromeos.cc
+++ b/device/bluetooth/bluetooth_gatt_connection_chromeos.cc
@@ -94,6 +94,11 @@ void BluetoothGattConnectionChromeOS::DevicePropertyChanged(
if (property_name == properties->connected.name() &&
!properties->connected.value())
connected_ = false;
+
+ // The remote device's bluetooth address may change if it is paired while
+ // connected.
+ if (property_name == properties->address.name())
+ device_address_ = properties->address.value();
}
} // namespace chromeos
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698