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

Unified Diff: content/child/web_url_request_util.cc

Issue 1987413002: Add link preload as=document support Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: crash fix Created 4 years, 3 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 | « content/child/web_url_loader_impl.cc ('k') | content/public/common/request_context_frame_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_request_util.cc
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
index 267a9575475fcf68c0ac86a7ed3f5674cf8347b6..04b674d0de7ef9bd3dd3195ec72b119b1704e010 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -79,8 +79,10 @@ ResourceType WebURLRequestToResourceType(const WebURLRequest& request) {
request.getFrameType() == WebURLRequest::FrameTypeAuxiliary) {
return RESOURCE_TYPE_MAIN_FRAME;
}
- if (request.getFrameType() == WebURLRequest::FrameTypeNested)
+ if (request.getFrameType() == WebURLRequest::FrameTypeNested ||
+ request.getFrameType() == WebURLRequest::FrameTypePreload) {
return RESOURCE_TYPE_SUB_FRAME;
+ }
NOTREACHED();
return RESOURCE_TYPE_SUB_RESOURCE;
}
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/public/common/request_context_frame_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698