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

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

Issue 2476173002: bluetooth: Invalidate characteristics when disconnecting (Closed)
Patch Set: Fix test expectations Created 4 years, 1 month 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 36592550950446d5f3d220970c2dbcfdd86a2be7..7f71ff632c2084c66b6902354156d051b838828f 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
@@ -59,6 +59,12 @@ BluetoothDevice::getOrCreateBluetoothRemoteGATTCharacteristic(
context, std::move(webCharacteristic), service);
}
+bool BluetoothDevice::isValidCharacteristic(
+ const String& characteristicInstanceId) {
+ return m_attributeInstanceMap->containsCharacteristic(
+ characteristicInstanceId);
+}
+
void BluetoothDevice::dispose() {
disconnectGATTIfConnected();
}

Powered by Google App Engine
This is Rietveld 408576698