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

Unified Diff: chrome/browser/download/download_manager.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: chrome/browser/download/download_manager.cc
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 54c21b40bd71f8a92641015466203f6d15c664cd..fc42b17ceb82a7dac1fc8fffc8b93c65787c748a 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -358,10 +358,7 @@ void DownloadManager::CheckVisitedReferrerBeforeDone(
if (state.force_file_name.empty()) {
FilePath generated_name;
- download_util::GenerateFileNameFromRequest(download->GetURL(),
- download->content_disposition(),
- download->referrer_charset(),
- download->mime_type(),
+ download_util::GenerateFileNameFromRequest(*download,
&generated_name);
// Freeze the user's preference for showing a Save As dialog. We're going

Powered by Google App Engine
This is Rietveld 408576698