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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.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/BluetoothAttributeInstanceMap.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
index cbeab082164b8bd3b77444bbfc3153bb30b704c7..f58be91213ca31276baaaa8b454be0eae341644e 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
@@ -58,8 +58,14 @@ BluetoothAttributeInstanceMap::getOrCreateBluetoothRemoteGATTCharacteristic(
return characteristic;
}
+bool BluetoothAttributeInstanceMap::containsCharacteristic(
+ const String& characteristicInstanceId) {
+ return m_characteristicIdToObject.contains(characteristicInstanceId);
+}
+
void BluetoothAttributeInstanceMap::Clear() {
m_serviceIdToObject.clear();
+ m_characteristicIdToObject.clear();
}
DEFINE_TRACE(BluetoothAttributeInstanceMap) {

Powered by Google App Engine
This is Rietveld 408576698