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() { |