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

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

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: renamed BluetoothUUID.typemap to Bluetooth.typemap Created 3 years, 12 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: third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
index cd703d4b3bb4f7a8e28b01d75e02d24a879ef29d..643385aa185b4e103c5cdb4144828c7320783d58 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
@@ -6,15 +6,12 @@
#include "core/dom/DOMException.h"
#include "core/dom/ExceptionCode.h"
-#include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom-blink.h"
namespace blink {
-DOMException* BluetoothError::take(
- ScriptPromiseResolver*,
- int32_t
- webError /* Corresponds to WebBluetoothResult in web_bluetooth.mojom */) {
- switch (static_cast<mojom::blink::WebBluetoothResult>(webError)) {
+DOMException* BluetoothError::take(ScriptPromiseResolver*,
+ mojom::blink::WebBluetoothResult error) {
+ switch (error) {
case mojom::blink::WebBluetoothResult::SUCCESS:
ASSERT_NOT_REACHED();
return DOMException::create(UnknownError);

Powered by Google App Engine
This is Rietveld 408576698