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

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

Issue 1228283003: Attach a WebBluetooth to the LocalFrame and use it if it's available. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@error-enum-cleanup
Patch Set: Always use BluetoothSupplement to get the WebBluetooth instance. Created 5 years, 5 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: Source/modules/bluetooth/BluetoothError.cpp
diff --git a/Source/modules/bluetooth/BluetoothError.cpp b/Source/modules/bluetooth/BluetoothError.cpp
index 111b16cc1de22ed2ceba62f87482482bbb3442c2..7659ff96400a868d3081ca5439e4f224f55b4973 100644
--- a/Source/modules/bluetooth/BluetoothError.cpp
+++ b/Source/modules/bluetooth/BluetoothError.cpp
@@ -55,6 +55,7 @@ DOMException* BluetoothError::take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoo
// SecurityErrors:
MAP_ERROR(GATTNotAuthorized, SecurityError, "GATT operation not authorized.");
+ MAP_ERROR(RequestDeviceWithoutFrame, SecurityError, "No window to show the requestDevice() dialog.");
#undef MAP_ERROR
}
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.cpp ('k') | Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698