Index: content/renderer/render_view.cc |
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc |
index 1eeeb773153494d3cd70102a1a9d02fc0e50842a..21677bb80b0d09e8c0815d9948262f788754754d 100644 |
--- a/content/renderer/render_view.cc |
+++ b/content/renderer/render_view.cc |
@@ -1979,9 +1979,17 @@ void RenderView::willClose(WebFrame* frame) { |
void RenderView::loadURLExternally( |
WebFrame* frame, const WebURLRequest& request, |
WebNavigationPolicy policy) { |
+ loadURLExternally(frame, request, policy, WebString()); |
+} |
+ |
+void RenderView::loadURLExternally( |
+ WebFrame* frame, const WebURLRequest& request, |
+ WebNavigationPolicy policy, |
+ const WebString& suggested_name) { |
GURL referrer(request.httpHeaderField(WebString::fromUTF8("Referer"))); |
if (policy == WebKit::WebNavigationPolicyDownload) { |
- Send(new ViewHostMsg_DownloadUrl(routing_id_, request.url(), referrer)); |
+ Send(new ViewHostMsg_DownloadUrl(routing_id_, request.url(), referrer, |
+ suggested_name)); |
} else { |
OpenURL(request.url(), referrer, policy); |
} |