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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.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/BluetoothAttributeInstanceMap.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
index 005d4c720827e71ab4db9dbfe26d42976894c83f..6102873b1fbaea24fe58c1b660d75854f17835d7 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
@@ -22,7 +22,7 @@ BluetoothAttributeInstanceMap::getOrCreateRemoteGATTService(
const String& deviceInstanceId) {
String serviceInstanceId = remoteGATTService->instance_id;
BluetoothRemoteGATTService* service =
- m_serviceIdToObject.get(serviceInstanceId);
+ m_serviceIdToObject.at(serviceInstanceId);
if (!service) {
service = new BluetoothRemoteGATTService(
@@ -46,7 +46,7 @@ BluetoothAttributeInstanceMap::getOrCreateRemoteGATTCharacteristic(
BluetoothRemoteGATTService* service) {
String instanceId = remoteGATTCharacteristic->instance_id;
BluetoothRemoteGATTCharacteristic* characteristic =
- m_characteristicIdToObject.get(instanceId);
+ m_characteristicIdToObject.at(instanceId);
if (!characteristic) {
characteristic = BluetoothRemoteGATTCharacteristic::create(
@@ -67,8 +67,7 @@ BluetoothAttributeInstanceMap::getOrCreateBluetoothRemoteGATTDescriptor(
mojom::blink::WebBluetoothRemoteGATTDescriptorPtr descriptor,
BluetoothRemoteGATTCharacteristic* characteristic) {
String instanceId = descriptor->instance_id;
- BluetoothRemoteGATTDescriptor* result =
- m_descriptorIdToObject.get(instanceId);
+ BluetoothRemoteGATTDescriptor* result = m_descriptorIdToObject.at(instanceId);
if (result)
return result;

Powered by Google App Engine
This is Rietveld 408576698