summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
authorpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 00:07:24 +0000
committerpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 00:07:24 +0000
commit889ed35c19ee60345cd6d5ededfd2c8d2fd01cd0 (patch)
tree9cacfa4854826e52bcf55c8ddcd74e59d4cbb4b2 /chrome/browser/download
parent561317ea4a95a03ab8890b4114d290c5f962eafc (diff)
downloadchromium_src-889ed35c19ee60345cd6d5ededfd2c8d2fd01cd0.zip
chromium_src-889ed35c19ee60345cd6d5ededfd2c8d2fd01cd0.tar.gz
chromium_src-889ed35c19ee60345cd6d5ededfd2c8d2fd01cd0.tar.bz2
Fix two bugs that resulted in misplaced downloads and missing
file names in the download page. BUG=6335 (crbug.com/6335 - "Download location ignored") Review URL: http://codereview.chromium.org/18388 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/download_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index d1ca5da..96fe0dd 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -819,7 +819,7 @@ void DownloadManager::ProceedWithFinishedDangerousDownload(
FilePath new_path;
int uniquifier = 0;
if (file_util::PathExists(path)) {
- new_path = new_path.DirName().Append(original_name);
+ new_path = path.DirName().Append(original_name);
// Make our name unique at this point, as if a dangerous file is downloading
// and a 2nd download is started for a file with the same name, they would
// have the same path. This is because we uniquify the name on download