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 |