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

Unified Diff: device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Mac test and docs 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
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
index 77dafb03c8d62ac8ccb545054ed18f306e1442e3..1743523d1b4ccc07034073647fbc9aa2b94eda78 100644
--- a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
@@ -64,7 +64,14 @@ void BluetoothLowEnergyDiscoveryManagerMac::TryStartDiscovery() {
};
VLOG(1) << "TryStartDiscovery scanForPeripheralsWithServices";
- [central_manager_ scanForPeripheralsWithServices:services options:nil];
+ // Start a scan with the Allow Duplicates option so that we get notified
+ // of each new advertisement packet.
scheib 2016/08/06 00:21:41 Good, but follow through with why we need to see e
ortuno 2016/08/08 22:56:39 Done.
+ [central_manager_
+ scanForPeripheralsWithServices:services
+ options:@{
+ CBCentralManagerScanOptionAllowDuplicatesKey :
+ @YES
+ }];
pending_ = false;
}
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698