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

Unified Diff: third_party/WebKit/Source/core/html/PublicURLManager.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/html/PublicURLManager.cpp
diff --git a/third_party/WebKit/Source/core/html/PublicURLManager.cpp b/third_party/WebKit/Source/core/html/PublicURLManager.cpp
index da224be7c7f1285de085cf791f039bb26a0aa729..609ee09b430650be62e73f02a324da89a4f5daf0 100644
--- a/third_party/WebKit/Source/core/html/PublicURLManager.cpp
+++ b/third_party/WebKit/Source/core/html/PublicURLManager.cpp
@@ -65,7 +65,7 @@ void PublicURLManager::revoke(const KURL& url) {
for (auto& registryUrl : m_registryToURL) {
if (registryUrl.value.contains(url.getString())) {
registryUrl.key->unregisterURL(url);
- registryUrl.value.remove(url.getString());
+ registryUrl.value.erase(url.getString());
break;
}
}
@@ -86,7 +86,7 @@ void PublicURLManager::revoke(const String& uuid) {
}
}
for (const auto& url : urlsToRemove)
- registeredURLs.remove(url);
+ registeredURLs.erase(url);
urlsToRemove.clear();
}
}

Powered by Google App Engine
This is Rietveld 408576698