Chromium Code Reviews| 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; |
| } |