Chromium Code Reviews| 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..daf7792700ebb0f450b922375593b3c4bfeb2cb6 100644 |
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
| @@ -6,15 +6,14 @@ |
| #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)) { |
| + mojom::blink::WebBluetoothResult |
| + error /* Corresponds to WebBluetoothResult in web_bluetooth.mojom */) { |
|
Reilly Grant (use Gerrit)
2016/12/20 02:08:17
Same here.
juncai
2016/12/20 22:33:42
Done.
|
| + switch (error) { |
| case mojom::blink::WebBluetoothResult::SUCCESS: |
| ASSERT_NOT_REACHED(); |
| return DOMException::create(UnknownError); |