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

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

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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..b7d719cf44cd365bd7ed95037b56da1a6406346f 100644
--- a/third_party/WebKit/Source/modules/webusb/USB.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USB.cpp
@@ -220,7 +220,7 @@ void USB::OnDeviceRemoved(usb::DeviceInfoPtr deviceInfo) {
device = USBDevice::create(std::move(deviceInfo), nullptr,
getExecutionContext());
dispatchEvent(USBConnectionEvent::create(EventTypeNames::disconnect, device));
- m_deviceCache.remove(guid);
+ m_deviceCache.erase(guid);
}
void USB::onDeviceManagerConnectionError() {
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | third_party/WebKit/Source/platform/Length.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698