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

Unified Diff: content/renderer/render_view_impl.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/public/renderer/navigation_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index b46b4795ae64de486f578b8f94dac3c94b58d119..b74665a00edcc9de48bb9bc7a90960e18a012f41 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2694,6 +2694,7 @@ NavigationState* RenderViewImpl::CreateNavigationStateFromPending() {
params.transferred_request_child_id);
navigation_state->set_transferred_request_request_id(
params.transferred_request_request_id);
+ navigation_state->set_allow_download(params.allow_download);
} else {
navigation_state = NavigationState::CreateContentInitiated();
}
@@ -3105,7 +3106,7 @@ void RenderViewImpl::willSendRequest(WebFrame* frame,
GURL request_url(request.url());
GURL new_url;
if (content::GetContentClient()->renderer()->WillSendRequest(
- frame, request_url, &new_url)) {
+ frame, request_url, &new_url)) {
request.setURL(WebURL(new_url));
}
@@ -3124,6 +3125,7 @@ void RenderViewImpl::willSendRequest(WebFrame* frame,
frame->identifier(),
frame->parent() == top_frame,
frame->parent() ? frame->parent()->identifier() : -1,
+ navigation_state->allow_download(),
transition_type,
navigation_state->transferred_request_child_id(),
navigation_state->transferred_request_request_id()));
« no previous file with comments | « content/public/renderer/navigation_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698