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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp

Issue 2742933002: Refactor determineRequestContext() to remove a mutableResourceRequest() call (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
index aefdfa3f7c67387d92cc0fd342c0b0722991bdb5..0d585a93bae53c80d4b4461e8435c9b4a082d02c 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
@@ -41,8 +41,8 @@ Resource* PreloadRequest::start(Document* document) {
ResourceRequest resourceRequest(url);
resourceRequest.setHTTPReferrer(SecurityPolicy::generateReferrer(
m_referrerPolicy, url, document->outgoingReferrer()));
- ResourceFetcher::determineRequestContext(resourceRequest, m_resourceType,
- false);
+ resourceRequest.setRequestContext(
+ ResourceFetcher::determineRequestContext(m_resourceType, false));
FetchRequest request(resourceRequest, initiatorInfo);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698