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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.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/bindings/core/v8/DOMWrapperWorld.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
index c275d460bcd2ebb800dcd3c08d518d82d5d1f48f..c42ceffc71f85d41876980657e66e9975b7114e8 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
@@ -168,7 +168,7 @@ void DOMWrapperWorld::dispose() {
m_domObjectHolders.clear();
m_domDataStore.reset();
DCHECK(worldMap().contains(m_worldId));
- worldMap().remove(m_worldId);
+ worldMap().erase(m_worldId);
}
PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::ensureIsolatedWorld(
@@ -209,7 +209,7 @@ void DOMWrapperWorld::setIsolatedWorldSecurityOrigin(
if (securityOrigin)
isolatedWorldSecurityOrigins().set(worldId, std::move(securityOrigin));
else
- isolatedWorldSecurityOrigins().remove(worldId);
+ isolatedWorldSecurityOrigins().erase(worldId);
}
typedef HashMap<int, String> IsolatedWorldHumanReadableNameMap;
@@ -254,7 +254,7 @@ void DOMWrapperWorld::setIsolatedWorldContentSecurityPolicy(
if (!policy.isEmpty())
isolatedWorldContentSecurityPolicies().set(worldId, true);
else
- isolatedWorldContentSecurityPolicies().remove(worldId);
+ isolatedWorldContentSecurityPolicies().erase(worldId);
}
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698