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

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

Issue 2693433002: Migrate WTF::HashMap::add() to ::insert() [final] (Closed)
Patch Set: more platform-specific references 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/modules/nfc/NFC.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
index fb7cb82033326c960cad65268deda2b6ac2498a6..f376eda638f990811e5db287b77352ecc3d41f0d 100644
--- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
@@ -231,7 +231,7 @@ ScriptPromise Bluetooth::requestDevice(ScriptState* scriptState,
void Bluetooth::addToConnectedDevicesMap(const String& deviceId,
BluetoothDevice* device) {
- m_connectedDevices.add(deviceId, device);
+ m_connectedDevices.insert(deviceId, device);
}
void Bluetooth::removeFromConnectedDevicesMap(const String& deviceId) {
@@ -241,7 +241,7 @@ void Bluetooth::removeFromConnectedDevicesMap(const String& deviceId) {
void Bluetooth::registerCharacteristicObject(
const String& characteristicInstanceId,
BluetoothRemoteGATTCharacteristic* characteristic) {
- m_activeCharacteristics.add(characteristicInstanceId, characteristic);
+ m_activeCharacteristics.insert(characteristicInstanceId, characteristic);
}
void Bluetooth::characteristicObjectRemoved(
@@ -284,7 +284,7 @@ BluetoothDevice* Bluetooth::getBluetoothDeviceRepresentingDevice(
BluetoothDevice* device = m_deviceInstanceMap.get(id);
if (!device) {
device = BluetoothDevice::take(resolver, std::move(devicePtr), this);
- auto result = m_deviceInstanceMap.add(id, device);
+ auto result = m_deviceInstanceMap.insert(id, device);
DCHECK(result.isNewEntry);
}
return device;
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/modules/nfc/NFC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698