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); |