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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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/platform/weborigin/SchemeRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
index 5fc77fc2607aec95e1f3626145ca1ebe889e8bd9..78b8384ef56c9da0460898534298c2da8358e147 100644
--- a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
@@ -184,7 +184,7 @@ void SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(
getMutableURLSchemesRegistry().schemesForbiddenFromDomainRelaxation.insert(
scheme);
} else {
- getMutableURLSchemesRegistry().schemesForbiddenFromDomainRelaxation.remove(
+ getMutableURLSchemesRegistry().schemesForbiddenFromDomainRelaxation.erase(
scheme);
}
}
@@ -298,7 +298,7 @@ void SchemeRegistry::registerURLSchemeAsFirstPartyWhenTopLevel(
void SchemeRegistry::removeURLSchemeAsFirstPartyWhenTopLevel(
const String& scheme) {
DCHECK_EQ(scheme, scheme.lower());
- getMutableURLSchemesRegistry().firstPartyWhenTopLevelSchemes.remove(scheme);
+ getMutableURLSchemesRegistry().firstPartyWhenTopLevelSchemes.erase(scheme);
}
bool SchemeRegistry::shouldTreatURLSchemeAsFirstPartyWhenTopLevel(
@@ -316,7 +316,7 @@ void SchemeRegistry::registerURLSchemeAsAllowedForReferrer(
}
void SchemeRegistry::removeURLSchemeAsAllowedForReferrer(const String& scheme) {
- getMutableURLSchemesRegistry().allowedInReferrerSchemes.remove(scheme);
+ getMutableURLSchemesRegistry().allowedInReferrerSchemes.erase(scheme);
}
bool SchemeRegistry::shouldTreatURLSchemeAsAllowedForReferrer(

Powered by Google App Engine
This is Rietveld 408576698