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

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.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/modules/fetch/Response.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp
index 63bc3bd20a1542d34e2c688e2d7cda4140c170c0..fc32fe8b7888f7c0147f8623bc599f10fac96bea 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -73,7 +73,7 @@ FetchResponseData* createFetchResponseDataFromWebResponse(
case WebServiceWorkerResponseTypeCORS: {
HTTPHeaderSet headerNames;
for (const auto& header : webResponse.corsExposedHeaderNames())
- headerNames.add(String(header));
+ headerNames.insert(String(header));
response = response->createCORSFilteredResponse(headerNames);
break;
}

Powered by Google App Engine
This is Rietveld 408576698