From 889ed35c19ee60345cd6d5ededfd2c8d2fd01cd0 Mon Sep 17 00:00:00 2001 From: "paulg@google.com" Date: Wed, 21 Jan 2009 00:07:24 +0000 Subject: 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 --- chrome/browser/download/download_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/download') 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 -- cgit v1.1