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())); |