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 1da898fa9807bb9ca0d20d8718f0fc2df183d9f0..a10f0e7c7358d52bf7c9837abd0d8527078a4267 100644 |
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp |
| @@ -1,3 +1,4 @@ |
| + |
|
ortuno
2016/10/07 05:32:52
nit: I think you added this line by accident :)
dougt
2016/10/07 05:44:38
Acknowledged.
|
| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -13,13 +14,13 @@ namespace blink { |
| DOMException* BluetoothError::take( |
| ScriptPromiseResolver*, |
| int32_t |
| - webError /* Corresponds to WebBluetoothError in web_bluetooth.mojom */) { |
| - switch (static_cast<mojom::blink::WebBluetoothError>(webError)) { |
| - case mojom::blink::WebBluetoothError::SUCCESS: |
| + webError /* Corresponds to WebBluetoothResult in web_bluetooth.mojom */) { |
| + switch (static_cast<mojom::blink::WebBluetoothResult>(webError)) { |
| + case mojom::blink::WebBluetoothResult::SUCCESS: |
| ASSERT_NOT_REACHED(); |
| return DOMException::create(UnknownError); |
| -#define MAP_ERROR(enumeration, name, message) \ |
| - case mojom::blink::WebBluetoothError::enumeration: \ |
| +#define MAP_ERROR(enumeration, name, message) \ |
| + case mojom::blink::WebBluetoothResult::enumeration: \ |
| return DOMException::create(name, message) |
| // InvalidModificationErrors: |