Index: chrome/browser/download/chrome_download_manager_delegate.cc |
=================================================================== |
--- chrome/browser/download/chrome_download_manager_delegate.cc (revision 147600) |
+++ chrome/browser/download/chrome_download_manager_delegate.cc (working copy) |
@@ -106,7 +106,7 @@ |
ChromeDownloadManagerDelegate::ChromeDownloadManagerDelegate(Profile* profile) |
: profile_(profile), |
next_download_id_(0), |
- download_prefs_(new DownloadPrefs(profile->GetPrefs())) { |
+ download_prefs_(new DownloadPrefs(profile)) { |
} |
ChromeDownloadManagerDelegate::~ChromeDownloadManagerDelegate() { |
@@ -660,7 +660,7 @@ |
if (should_prompt && !download_manager_->LastDownloadPath().empty()) |
target_directory = download_manager_->LastDownloadPath(); |
else |
- target_directory = download_prefs_->download_path(); |
+ target_directory = download_prefs_->DownloadPath(); |
suggested_path = target_directory.Append(generated_name); |
} else { |
DCHECK(!should_prompt); |
@@ -704,7 +704,7 @@ |
this, download->GetId(), should_prompt, is_forced_path, danger_type)); |
#else |
GetReservedPath( |
- *download, suggested_path, download_prefs_->download_path(), |
+ *download, suggested_path, download_prefs_->DownloadPath(), |
!is_forced_path, |
base::Bind(&ChromeDownloadManagerDelegate::OnPathReservationAvailable, |
this, download->GetId(), should_prompt, danger_type)); |
@@ -725,7 +725,7 @@ |
return; |
GetReservedPath( |
- *download, suggested_path, download_prefs_->download_path(), |
+ *download, suggested_path, download_prefs_->DownloadPath(), |
!is_forced_path, |
base::Bind(&ChromeDownloadManagerDelegate::OnPathReservationAvailable, |
this, download->GetId(), should_prompt, danger_type)); |