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

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

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: run bad_message_reasons 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/BluetoothDevice.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
index dde3df2afd038565362397085a5b25020b1684b3..7669ccb13d98f54981810cda3957bbf07ffc36b7 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
@@ -71,6 +71,10 @@ BluetoothDevice::getOrCreateBluetoothRemoteGATTDescriptor(
std::move(descriptor), characteristic);
}
+bool BluetoothDevice::isValidDescriptor(const String& descriptorInstanceId) {
+ return m_attributeInstanceMap->containsDescriptor(descriptorInstanceId);
+}
+
void BluetoothDevice::dispose() {
disconnectGATTIfConnected();
}

Powered by Google App Engine
This is Rietveld 408576698