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

Unified Diff: third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.cpp

Issue 2741753003: Remove mutableResourceRequest() by FetchRequest::setRequestContext() (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/DocumentResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.cpp b/third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.cpp
index 63df50ad0c2f0287825a9f6ef34ce8d652a14d2e..ccecd6dc73cf8081ffc128e9477535e11ece8b3e 100644
--- a/third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResource.cpp
@@ -41,8 +41,7 @@ CSSStyleSheetResource* CSSStyleSheetResource::fetch(FetchRequest& request,
ResourceFetcher* fetcher) {
DCHECK_EQ(request.resourceRequest().frameType(),
WebURLRequest::FrameTypeNone);
- request.mutableResourceRequest().setRequestContext(
- WebURLRequest::RequestContextStyle);
+ request.setRequestContext(WebURLRequest::RequestContextStyle);
CSSStyleSheetResource* resource = toCSSStyleSheetResource(
fetcher->requestResource(request, CSSStyleSheetResourceFactory()));
// TODO(kouhei): Dedupe this logic w/ ScriptResource::fetch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/DocumentResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698