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

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

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/Bluetooth.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
index 42e7fe1ca5622c09b96b6e1391df923e381e651b..a1011220fa44d60f3aedac171df5b13878dce35c 100644
--- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
@@ -235,7 +235,7 @@ void Bluetooth::AddToConnectedDevicesMap(const String& deviceId,
}
void Bluetooth::RemoveFromConnectedDevicesMap(const String& deviceId) {
- m_connectedDevices.remove(deviceId);
+ m_connectedDevices.erase(deviceId);
}
void Bluetooth::RegisterCharacteristicObject(
@@ -246,7 +246,7 @@ void Bluetooth::RegisterCharacteristicObject(
void Bluetooth::CharacteristicObjectRemoved(
const String& characteristicInstanceId) {
- m_activeCharacteristics.remove(characteristicInstanceId);
+ m_activeCharacteristics.erase(characteristicInstanceId);
}
DEFINE_TRACE(Bluetooth) {
@@ -272,7 +272,7 @@ void Bluetooth::GattServerDisconnected(const WTF::String& deviceId) {
// Remove device from the map before calling dispatchGattServerDisconnected
// to avoid removing a device the gattserverdisconnected event handler might
// have re-connected.
- m_connectedDevices.remove(deviceId);
+ m_connectedDevices.erase(deviceId);
device->DispatchGattServerDisconnected();
}
}

Powered by Google App Engine
This is Rietveld 408576698