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

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

Issue 2680783002: bluetooth: show better error messages for services, characteristics and descriptors (Closed)
Patch Set: Added comment and changed to enum class. Created 3 years, 10 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/Bluetooth.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
index 750fdcabd2e091f1e65aec7d3b5146e60484450e..4cd27f84457ff88e3596d94455524cf6683eb220 100644
--- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
@@ -150,7 +150,7 @@ void Bluetooth::RequestDeviceCallback(
getBluetoothDeviceRepresentingDevice(std::move(device), resolver);
resolver->resolve(bluetoothDevice);
} else {
- resolver->reject(BluetoothError::take(resolver, result));
+ resolver->reject(BluetoothError::createDOMException(result));
}
}

Powered by Google App Engine
This is Rietveld 408576698