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

Unified Diff: third_party/WebKit/Source/modules/webusb/USB.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/webusb/USB.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USB.cpp b/third_party/WebKit/Source/modules/webusb/USB.cpp
index 3100af6f8d27a16c707178f566bdb2255c490d31..381cc39465b2861caa08086a73bd6712ff6da914 100644
--- a/third_party/WebKit/Source/modules/webusb/USB.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USB.cpp
@@ -147,7 +147,7 @@ void USB::contextDestroyed(ExecutionContext*) {
}
USBDevice* USB::getOrCreateDevice(usb::DeviceInfoPtr deviceInfo) {
- USBDevice* device = m_deviceCache.get(deviceInfo->guid);
+ USBDevice* device = m_deviceCache.at(deviceInfo->guid);
if (!device) {
String guid = deviceInfo->guid;
usb::DevicePtr pipe;
@@ -202,7 +202,7 @@ void USB::OnDeviceAdded(usb::DeviceInfoPtr deviceInfo) {
void USB::OnDeviceRemoved(usb::DeviceInfoPtr deviceInfo) {
String guid = deviceInfo->guid;
- USBDevice* device = m_deviceCache.get(guid);
+ USBDevice* device = m_deviceCache.at(guid);
if (!device)
device = USBDevice::create(std::move(deviceInfo), nullptr,
getExecutionContext());
« 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