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(); |
} |
} |