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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (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/platform/loader/fetch/CrossOriginAccessControl.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp b/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp
index e833f3547dc914d6e42b398c5314532fc5628569..a9edb4d2c56b784a08db452824fe7c9f42c066d9 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/CrossOriginAccessControl.cpp
@@ -399,7 +399,7 @@ void parseAccessControlExposeHeadersAllowList(const String& headerValue,
for (unsigned headerCount = 0; headerCount < headers.size(); headerCount++) {
String strippedHeader = headers[headerCount].stripWhiteSpace();
if (!strippedHeader.isEmpty())
- headerSet.add(strippedHeader);
+ headerSet.insert(strippedHeader);
}
}
@@ -412,7 +412,7 @@ void extractCorsExposedHeaderNamesList(const ResourceResponse& response,
// header.
if (response.wasFetchedViaServiceWorker()) {
for (const auto& header : response.corsExposedHeaderNames())
- headerSet.add(header);
+ headerSet.insert(header);
return;
}
parseAccessControlExposeHeadersAllowList(

Powered by Google App Engine
This is Rietveld 408576698