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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 7fa17e2b42c67ae4901a253a4c08bc9aabcc3cd6..e730feb10d7ca945ecb82c8fdbd7e6e27660c878 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -177,7 +177,7 @@ void removeElementFromDocumentMap(HTMLMediaElement* element,
WeakMediaElementSet* set = it->value;
set->erase(element);
if (set->isEmpty())
- map.remove(it);
+ map.erase(it);
}
class AudioSourceProviderClientLockScope {

Powered by Google App Engine
This is Rietveld 408576698