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

Unified Diff: Source/modules/bluetooth/BluetoothError.cpp

Issue 1284143006: Update error message assertions for the new chooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-chooser-error
Patch Set: Remove NoBluetoothChooser, which turns out not to be used. Created 5 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 | « LayoutTests/bluetooth/requestDevice.html ('k') | public/platform/modules/bluetooth/WebBluetoothError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothError.cpp
diff --git a/Source/modules/bluetooth/BluetoothError.cpp b/Source/modules/bluetooth/BluetoothError.cpp
index 6e5c28dbcbbfac6ef26c537ee224db0346b7809b..c6e87c57908480dbd3b61e6e1661a9350082cef7 100644
--- a/Source/modules/bluetooth/BluetoothError.cpp
+++ b/Source/modules/bluetooth/BluetoothError.cpp
@@ -39,14 +39,9 @@ DOMException* BluetoothError::take(ScriptPromiseResolver*, const WebBluetoothErr
MAP_ERROR(UntranslatedConnectErrorCode, NetworkError, "Unknown ConnectErrorCode.");
// NotFoundErrors:
- MAP_ERROR(BluetoothAdapterOff, NotFoundError, "Bluetooth adapter is off.");
MAP_ERROR(NoBluetoothAdapter, NotFoundError, "Bluetooth adapter not available.");
- MAP_ERROR(NoBluetoothChooser, NotFoundError, "Can't show Bluetooth chooser dialog.");
- MAP_ERROR(DiscoverySessionStartFailed, NotFoundError, "Couldn't start discovery session.");
- MAP_ERROR(DiscoverySessionStopFailed, NotFoundError, "Failed to stop discovery session.");
MAP_ERROR(ChosenDeviceVanished, NotFoundError, "User selected a device that doesn't exist anymore.");
MAP_ERROR(ChooserCancelled, NotFoundError, "User cancelled the requestDevice() chooser.");
- MAP_ERROR(NoDevicesFound, NotFoundError, "No Bluetooth devices in range.");
MAP_ERROR(ServiceNotFound, NotFoundError, "Service not found in device.");
MAP_ERROR(CharacteristicNotFound, NotFoundError, "Characteristic not found in device.");
« no previous file with comments | « LayoutTests/bluetooth/requestDevice.html ('k') | public/platform/modules/bluetooth/WebBluetoothError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698