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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp

Issue 2740253002: Remove FetchRequest::mutableResourceRequest() where removing is trivial (Closed)
Patch Set: Fix 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/core/inspector/InspectorResourceContentLoader.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
index 4d7ac227efb63f6ed723535c978ca6f532c16254..0428a059b1e25cce4f88d9ef673c8d1b365d1081 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
@@ -141,10 +141,9 @@ void InspectorResourceContentLoader::start() {
if (url.isEmpty() || urlsToFetch.contains(url))
continue;
urlsToFetch.insert(url);
- FetchRequest request(ResourceRequest(url),
- FetchInitiatorTypeNames::internal);
- request.mutableResourceRequest().setRequestContext(
- WebURLRequest::RequestContextInternal);
+ ResourceRequest resourceRequest(url);
+ resourceRequest.setRequestContext(WebURLRequest::RequestContextInternal);
+ FetchRequest request(resourceRequest, FetchInitiatorTypeNames::internal);
Resource* resource =
CSSStyleSheetResource::fetch(request, document->fetcher());
if (!resource)
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698