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

Unified Diff: third_party/WebKit/Source/core/loader/resource/FontResource.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
Index: third_party/WebKit/Source/core/loader/resource/FontResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/FontResource.cpp b/third_party/WebKit/Source/core/loader/resource/FontResource.cpp
index 1488e55eb3b6ecf26e3174930f1c1c07056c3abc..28fc1339d054351bae49044fab80e30b75bc560d 100644
--- a/third_party/WebKit/Source/core/loader/resource/FontResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/FontResource.cpp
@@ -77,8 +77,7 @@ FontResource* FontResource::fetch(FetchRequest& request,
ResourceFetcher* fetcher) {
DCHECK_EQ(request.resourceRequest().frameType(),
WebURLRequest::FrameTypeNone);
- request.mutableResourceRequest().setRequestContext(
- WebURLRequest::RequestContextFont);
+ request.setRequestContext(WebURLRequest::RequestContextFont);
return toFontResource(
fetcher->requestResource(request, FontResourceFactory()));
}

Powered by Google App Engine
This is Rietveld 408576698