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

Unified Diff: third_party/WebKit/Source/core/workers/Worklet.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/core/workers/Worklet.cpp
diff --git a/third_party/WebKit/Source/core/workers/Worklet.cpp b/third_party/WebKit/Source/core/workers/Worklet.cpp
index 67a822ca37b141fbf49247c487b76c05ae928377..fdafbedf116c18d95ad9d893c4b338f3c6eaafe3 100644
--- a/third_party/WebKit/Source/core/workers/Worklet.cpp
+++ b/third_party/WebKit/Source/core/workers/Worklet.cpp
@@ -45,7 +45,7 @@ void Worklet::notifyWorkletScriptLoadingFinished(
const ScriptSourceCode& sourceCode) {
DCHECK(isMainThread());
ScriptPromiseResolver* resolver = m_loaderAndResolvers.get(scriptLoader);
- m_loaderAndResolvers.remove(scriptLoader);
+ m_loaderAndResolvers.erase(scriptLoader);
if (!scriptLoader->wasScriptLoadSuccessful()) {
resolver->reject(DOMException::create(NetworkError));
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp ('k') | third_party/WebKit/Source/core/xml/XSLTProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698