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

Unified Diff: content/browser/bluetooth/bluetooth_device_chooser_controller.cc

Issue 2339033003: bluetooth: Perform an LE scan only (Closed)
Patch Set: Add decision to doc 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d524f19a864af9ab0535804a44eb4ad78e27bf78..c7a8aec2aa0d3e8ada0e30cfb9942a3a32271148 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
@@ -148,8 +148,12 @@ std::unique_ptr<device::BluetoothDiscoveryFilter> ComputeScanFilter(
services.insert(service.value());
}
}
+ // There isn't much support for GATT over BR/EDR from neither platforms nor
+ // devices so performing a Dual scan will find devices that the API is not
+ // able to interact with. To avoid wasting power and confusing users with
+ // devices they are not able to interact with, we only perform an LE Scan.
auto discovery_filter = base::MakeUnique<device::BluetoothDiscoveryFilter>(
- device::BLUETOOTH_TRANSPORT_DUAL);
+ device::BLUETOOTH_TRANSPORT_LE);
for (const BluetoothUUID& service : services) {
discovery_filter->AddUUID(service);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698