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

Unified Diff: third_party/WebKit/Source/modules/webusb/USB.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: Created 3 years, 11 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/webusb/USB.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USB.cpp b/third_party/WebKit/Source/modules/webusb/USB.cpp
index 5e23731216ddbb0da261b5cee40e5d55cbb70d25..b640313b07413ebc8a17b049439d7dabaef01642 100644
--- a/third_party/WebKit/Source/modules/webusb/USB.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USB.cpp
@@ -167,7 +167,7 @@ USBDevice* USB::getOrCreateDevice(usb::DeviceInfoPtr deviceInfo) {
m_deviceManager->GetDevice(guid, mojo::MakeRequest(&pipe));
device = USBDevice::create(std::move(deviceInfo), std::move(pipe),
getExecutionContext());
- m_deviceCache.add(guid, device);
+ m_deviceCache.insert(guid, device);
}
return device;
}

Powered by Google App Engine
This is Rietveld 408576698