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

Unified Diff: content/browser/download/download_file_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
« no previous file with comments | « content/browser/download/download_file_impl.h ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_impl.cc
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index a1ab62a1a8908cb5b000f2c478d68da81bcc5464..694121634bcc8a06f4324fd60cc54184c96f583d 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -45,6 +45,7 @@ DownloadFileImpl::DownloadFileImpl(
bound_net_log),
stream_reader_(stream.Pass()),
id_(info->download_id),
+ default_download_directory_(info->default_download_directory),
request_handle_(request_handle),
download_manager_(download_manager),
bytes_seen_(0),
@@ -60,7 +61,7 @@ DownloadFileImpl::~DownloadFileImpl() {
content::DownloadInterruptReason DownloadFileImpl::Initialize() {
update_timer_.reset(new base::RepeatingTimer<DownloadFileImpl>());
- net::Error result = file_.Initialize();
+ net::Error result = file_.Initialize(default_download_directory_);
if (result != net::OK) {
return content::ConvertNetErrorToInterruptReason(
result, content::DOWNLOAD_INTERRUPT_FROM_DISK);
« no previous file with comments | « content/browser/download/download_file_impl.h ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698