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

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

Issue 2110813002: bluetooth: Move First Device Chooser to tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Created 4 years, 6 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: 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 bfb649ba0116c969c01601766b98a7dd8e2e9ad8..34bf2d4908560a5ce6a1850325314ddf3fec6d0b 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
@@ -14,7 +14,6 @@
#include "base/strings/utf_string_conversions.h"
#include "content/browser/bluetooth/bluetooth_blacklist.h"
#include "content/browser/bluetooth/bluetooth_metrics.h"
-#include "content/browser/bluetooth/first_device_bluetooth_chooser.h"
#include "content/browser/bluetooth/web_bluetooth_service_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
@@ -303,9 +302,8 @@ void BluetoothDeviceChooserController::GetDevice(
}
if (!chooser_.get()) {
- LOG(WARNING)
- << "No Bluetooth chooser implementation; falling back to first device.";
- chooser_.reset(new FirstDeviceBluetoothChooser(chooser_event_handler));
+ PostErrorCallback(
+ blink::mojom::WebBluetoothError::WEB_BLUETOOTH_NOT_SUPPORTED);
}
if (!chooser_->CanAskForScanningPermission()) {

Powered by Google App Engine
This is Rietveld 408576698