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

Unified Diff: content/common/resource_dispatcher.cc

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: allow_download_(true) Created 8 years, 8 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/common/request_extra_data.cc ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_dispatcher.cc
diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc
index 69937efa1389c88ecdbf3995f56d43da81b5f1d3..0d3258f36c8798d8a4368c203ddf8088018c1e78 100644
--- a/content/common/resource_dispatcher.cc
+++ b/content/common/resource_dispatcher.cc
@@ -113,6 +113,7 @@ IPCResourceLoaderBridge::IPCResourceLoaderBridge(
request_.frame_id = extra_data->frame_id();
request_.parent_is_main_frame = extra_data->parent_is_main_frame();
request_.parent_frame_id = extra_data->parent_frame_id();
+ request_.allow_download = extra_data->allow_download();
request_.transition_type = extra_data->transition_type();
request_.transferred_request_child_id =
extra_data->transferred_request_child_id();
@@ -123,6 +124,7 @@ IPCResourceLoaderBridge::IPCResourceLoaderBridge(
request_.frame_id = -1;
request_.parent_is_main_frame = false;
request_.parent_frame_id = -1;
+ request_.allow_download = true;
request_.transition_type = content::PAGE_TRANSITION_LINK;
request_.transferred_request_child_id = -1;
request_.transferred_request_request_id = -1;
« no previous file with comments | « content/common/request_extra_data.cc ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698