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

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

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: #2 Created 3 years, 11 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/BluetoothRemoteGATTUtils.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.cpp
index 7e586e6e56b0fbadaf3b7b51d90e7f450f60cfa0..f41787190932056cd20e7af05e2d2314d00c13be 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.cpp
@@ -35,6 +35,12 @@ DOMException* BluetoothRemoteGATTUtils::CreateDOMException(ExceptionType type) {
"Characteristic is no longer valid. Remember to retrieve the "
"characteristic again after reconnecting.");
+ case ExceptionType::kInvalidDescriptor:
+ return DOMException::create(
+ InvalidStateError,
+ "Descriptor is no longer valid. Remember to retrieve the "
+ "Descriptor again after reconnecting.");
+
default:
NOTREACHED();
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698