summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 22:36:23 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 22:36:23 +0000
commit966f82b6db7e8c4c6d1da79a97fe82a878697e2b (patch)
tree796f1e7873707bcffb098db9369508c15c04be3f /chrome/common/chrome_paths.cc
parent07efa3c8644d88f43224f9cb14a65507c82cba87 (diff)
downloadchromium_src-966f82b6db7e8c4c6d1da79a97fe82a878697e2b.zip
chromium_src-966f82b6db7e8c4c6d1da79a97fe82a878697e2b.tar.gz
chromium_src-966f82b6db7e8c4c6d1da79a97fe82a878697e2b.tar.bz2
Create the download folder if it doesn't exist. That is, the actual download folder, not the default one.
BUG=21759 TEST=none Review URL: http://codereview.chromium.org/219017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 51ff8f5..f504b4a 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -5,7 +5,6 @@
#include "chrome/common/chrome_paths.h"
#include "base/command_line.h"
-#include "base/file_path.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
@@ -61,8 +60,8 @@ bool PathProvider(int key, FilePath* result) {
return true;
#else
return PathService::Get(base::DIR_EXE, result);
-#endif // defined(OS_MACOSX)
-#endif // NDEBUG
+#endif // defined(OS_MACOSX)
+#endif // NDEBUG
case chrome::FILE_RESOURCE_MODULE:
return PathService::Get(base::FILE_MODULE, result);
}
@@ -98,7 +97,8 @@ bool PathProvider(int key, FilePath* result) {
case chrome::DIR_DEFAULT_DOWNLOADS:
if (!GetUserDownloadsDirectory(&cur))
return false;
- create_dir = true;
+ // Do not create the download directory here, we have done it twice now
+ // and annoyed a lot of users.
break;
case chrome::DIR_CRASH_DUMPS:
// The crash reports are always stored relative to the default user data