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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase 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/Bluetooth.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
index 24ce97b75a254c061d05caee0f6043baa06cb349..750fdcabd2e091f1e65aec7d3b5146e60484450e 100644
--- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
@@ -261,13 +261,13 @@ void Bluetooth::RemoteCharacteristicValueChanged(
const WTF::String& characteristicInstanceId,
const WTF::Vector<uint8_t>& value) {
BluetoothRemoteGATTCharacteristic* characteristic =
- m_activeCharacteristics.get(characteristicInstanceId);
+ m_activeCharacteristics.at(characteristicInstanceId);
if (characteristic)
characteristic->dispatchCharacteristicValueChanged(value);
}
void Bluetooth::GattServerDisconnected(const WTF::String& deviceId) {
- BluetoothDevice* device = m_connectedDevices.get(deviceId);
+ BluetoothDevice* device = m_connectedDevices.at(deviceId);
if (device) {
// Remove device from the map before calling dispatchGattServerDisconnected
// to avoid removing a device the gattserverdisconnected event handler might
@@ -281,7 +281,7 @@ BluetoothDevice* Bluetooth::getBluetoothDeviceRepresentingDevice(
mojom::blink::WebBluetoothDevicePtr devicePtr,
ScriptPromiseResolver* resolver) {
WTF::String id = devicePtr->id;
- BluetoothDevice* device = m_deviceInstanceMap.get(id);
+ BluetoothDevice* device = m_deviceInstanceMap.at(id);
if (!device) {
device = BluetoothDevice::take(resolver, std::move(devicePtr), this);
auto result = m_deviceInstanceMap.insert(id, device);

Powered by Google App Engine
This is Rietveld 408576698