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

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: 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 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
« 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