Index: chrome/browser/download/chrome_download_manager_delegate.cc |
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc |
index 56c36135e8651256f39704df4a547bdd4e5f4f24..ce3ab1b0654cdde2bbb3f5d7c070a7b9d038fd17 100644 |
--- a/chrome/browser/download/chrome_download_manager_delegate.cc |
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc |
@@ -600,8 +600,8 @@ void ChromeDownloadManagerDelegate::CheckIfSuggestedPathExists( |
if (!file_util::PathIsWritable(dir)) { |
VLOG(1) << "Unable to write to directory \"" << dir.value() << "\""; |
state.prompt_user_for_save_location = true; |
- PathService::Get(chrome::DIR_USER_DOCUMENTS, &state.suggested_path); |
- state.suggested_path = state.suggested_path.Append(filename); |
+ PathService::Get(chrome::DIR_USER_DOCUMENTS, &dir); |
+ state.suggested_path = dir.Append(filename); |
} |
// If the download is possibly dangerous, we'll use a temporary name for it. |