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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs 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/BluetoothAttributeInstanceMap.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
index 1326f66c554bf09e694ac5d5cc2b3d92bf724245..005d4c720827e71ab4db9dbfe26d42976894c83f 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
@@ -27,7 +27,7 @@ BluetoothAttributeInstanceMap::getOrCreateRemoteGATTService(
if (!service) {
service = new BluetoothRemoteGATTService(
std::move(remoteGATTService), isPrimary, deviceInstanceId, m_device);
- m_serviceIdToObject.add(serviceInstanceId, service);
+ m_serviceIdToObject.insert(serviceInstanceId, service);
}
return service;
@@ -51,7 +51,7 @@ BluetoothAttributeInstanceMap::getOrCreateRemoteGATTCharacteristic(
if (!characteristic) {
characteristic = BluetoothRemoteGATTCharacteristic::create(
context, std::move(remoteGATTCharacteristic), service, m_device);
- m_characteristicIdToObject.add(instanceId, characteristic);
+ m_characteristicIdToObject.insert(instanceId, characteristic);
}
return characteristic;
@@ -75,7 +75,7 @@ BluetoothAttributeInstanceMap::getOrCreateBluetoothRemoteGATTDescriptor(
result =
new BluetoothRemoteGATTDescriptor(std::move(descriptor), characteristic);
- m_descriptorIdToObject.add(instanceId, result);
+ m_descriptorIdToObject.insert(instanceId, result);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698