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

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

Issue 1124973003: bluetooth: Add NetworkError for Bluetooth on Blink side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | 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 70c9884ee52b420c35dc2ae26027a8a86e933f98..f5176d6ecf073cc5fad3b826bc0dd934d0330603 100644
--- a/Source/modules/bluetooth/BluetoothError.cpp
+++ b/Source/modules/bluetooth/BluetoothError.cpp
@@ -16,6 +16,8 @@ DOMException* BluetoothError::take(ScriptPromiseResolver*, WebBluetoothError* we
{
OwnPtr<WebBluetoothError> webError = adoptPtr(webErrorRawPointer);
switch (webError->errorType) {
+ case WebBluetoothError::NetworkError:
+ return DOMException::create(NetworkError, webError->message);
case WebBluetoothError::SecurityError:
return DOMException::create(SecurityError, webError->message);
case WebBluetoothError::NotFoundError:
« no previous file with comments | « no previous file | public/platform/modules/bluetooth/WebBluetoothError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698