| 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 a600dec269d4c87cbf28e5aafb20e593f228b023..0a05cc705f703a63d70d0680c6141f1395ba4010 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
|
| @@ -9,14 +9,14 @@
|
|
|
| namespace blink {
|
|
|
| -DOMException* BluetoothError::take(ScriptPromiseResolver*, const WebBluetoothError& webError)
|
| +DOMException* BluetoothError::take(ScriptPromiseResolver*, int32_t webError)
|
| {
|
| - switch (webError) {
|
| - case WebBluetoothError::SUCCESS:
|
| + switch (static_cast<mojom::blink::WebBluetoothError>(webError)) {
|
| + case mojom::blink::WebBluetoothError::SUCCESS:
|
| ASSERT_NOT_REACHED();
|
| return DOMException::create(UnknownError);
|
| -#define MAP_ERROR(enumeration, name, message) \
|
| - case WebBluetoothError::enumeration: \
|
| +#define MAP_ERROR(enumeration, name, message) \
|
| + case mojom::blink::WebBluetoothError::enumeration: \
|
| return DOMException::create(name, message)
|
|
|
| // InvalidModificationErrors:
|
|
|