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

Unified Diff: content/browser/download/download_manager_impl.cc

Issue 10905284: Use the user's preferred downloads directory for creating the initial download file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows path check Created 8 years, 3 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/download/download_manager_impl.cc
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc
index 315d6439e2f7da52743977e550c6213437a49228..293f0c7ac61ce5c6a23a4e6a3edb522c893170d5 100644
--- a/content/browser/download/download_manager_impl.cc
+++ b/content/browser/download/download_manager_impl.cc
@@ -373,6 +373,13 @@ content::DownloadId DownloadManagerImpl::StartDownload(
// assigned in CreateDownloadItem.
DownloadId download_id = info->download_id;
+ if (delegate_) {
+ FilePath website_save_directory; // Unused
+ bool skip_dir_check = false; // Unused
+ delegate_->GetSaveDir(GetBrowserContext(), &website_save_directory,
+ &info->default_download_directory, &skip_dir_check);
+ }
+
DownloadFileManager::CreateDownloadFileCallback callback(
base::Bind(&DownloadManagerImpl::OnDownloadFileCreated,
this, download_id.local()));
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698