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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Improve comments Created 4 years, 4 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_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index 5e2e82607c76e97413c5e63bc38426990a807f9d..ba81281aa4f36f22779fb5cbac73a47902db46f0 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -97,6 +97,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// * IsPaired()
// * IsTrustable()
//
+ // On Android and MacOS this method is called for each advertisement packet
+ // received. On Chrome OS and Linux, we can't guarantee that this method
+ // will be called for each Adv. Packet received but, because the RSSI is
+ // always changing, it's very likely this method will be called for each
+ // Adv. Packet.
// |device| should not be cached. Instead, copy its Bluetooth address.
virtual void DeviceChanged(BluetoothAdapter* adapter,
BluetoothDevice* device) {}

Powered by Google App Engine
This is Rietveld 408576698