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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.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/nfc/NFC.cpp
diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp
index c8e487fa695aa363536bb2fcf4d5b6a2f0f903d0..019cfd8e102749d7f20468e363c3c03d93c77276 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -690,7 +690,7 @@ ScriptPromise NFC::cancelWatch(ScriptState* scriptState, long id) {
return promise;
if (id) {
- m_callbacks.remove(id);
+ m_callbacks.erase(id);
} else {
return ScriptPromise::rejectWithDOMException(
scriptState, DOMException::create(NotFoundError));

Powered by Google App Engine
This is Rietveld 408576698