Chromium Code Reviews| Index: content/browser/bluetooth/bluetooth_device_chooser_controller.cc |
| diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc |
| index 95315cdf512aedaaef0d8f4415258688de7d0eda..edc15526ac6e9edb1352222e4a20eb5545452a67 100644 |
| --- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc |
| +++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc |
| @@ -336,6 +336,14 @@ void BluetoothDeviceChooserController::GetDevice( |
| } |
| PopulateConnectedDevices(); |
| + std::unique_ptr<device::BluetoothDiscoveryFilter> discovery_filter = |
|
ortuno
2016/11/07 03:12:33
yes, please remove this code. We will do it in a s
jlebel
2016/11/07 05:56:39
Done.
|
| + ComputeScanFilter(options_->filters); |
| + for (const std::pair<device::BluetoothDevice*, |
| + device::BluetoothDevice::UUIDSet>& pair : |
| + adapter_->RetrieveGattConnectedDevicesWithDiscoveryFilter( |
| + *discovery_filter.get())) { |
| + AddFilteredDevice(*pair.first); |
| + } |
| if (!chooser_.get()) { |
| // If the dialog's closing, no need to do any of the rest of this. |
| return; |