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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 7484061: Use the suggested name from an anchor's 'download' attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011 Created 9 years, 5 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
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index f06c33cc9413c9c8c906798220862c07d69a8fcf..96df3730a867c1330cf95ff375dec766726bf4ad 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -589,12 +589,15 @@ void RenderMessageFilter::OnGenerateRoutingID(int* route_id) {
void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
const GURL& url,
- const GURL& referrer) {
+ const GURL& referrer,
+ const string16& suggested_name) {
// Don't show "Save As" UI.
bool prompt_for_save_location = false;
+ DownloadSaveInfo save_info;
+ save_info.suggested_name = suggested_name;
resource_dispatcher_host_->BeginDownload(url,
referrer,
- DownloadSaveInfo(),
+ save_info,
prompt_for_save_location,
render_process_id_,
message.routing_id(),

Powered by Google App Engine
This is Rietveld 408576698