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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2242833002: Bluetooth: mac: add connected BLE devices at startup Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased - work in progress / no tests Created 4 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
Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index ebf0f4cccaa613a1aabd9c8ab84bbba80289e908..30bd96f695fdb126605379b7b6e951243308a05d 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -33,6 +33,11 @@
[peripheral_ setDelegate:peripheral_delegate_];
identifier_ = GetPeripheralIdentifier(peripheral);
hash_address_ = GetPeripheralHashAddress(peripheral);
+
+ // TODO(jracle): Following line is a patch to avoid being considered
+ // as a timed-out device in BluetoothAdapter::RemoveTimedOutDevices().
+ // Consider removing it and review BluetoothAdapter's logic.
+ UpdateTimestamp();
jracle (use Gerrit) 2016/09/02 14:23:10 I did this hack here, but I think we could instead
}
BluetoothLowEnergyDeviceMac::~BluetoothLowEnergyDeviceMac() {
« device/bluetooth/bluetooth_adapter_mac.mm ('K') | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698