diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 02:36:07 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 02:36:07 +0000 |
commit | 0ef96004ebb76bdc3b4f628972cfe80683825839 (patch) | |
tree | 461f513fc216c6846bc550584bb10d6d1abbdd11 /chrome/common/chrome_paths.cc | |
parent | 044a038a2baf8d9e6c9c0dab5f5f2880bcd30a07 (diff) | |
download | chromium_src-0ef96004ebb76bdc3b4f628972cfe80683825839.zip chromium_src-0ef96004ebb76bdc3b4f628972cfe80683825839.tar.gz chromium_src-0ef96004ebb76bdc3b4f628972cfe80683825839.tar.bz2 |
Create the download folder if it doesn't exist.
BUG=20559
TEST=See bug.
Review URL: http://codereview.chromium.org/177062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r-- | chrome/common/chrome_paths.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index 2460f49..bb30e80 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -96,6 +96,7 @@ bool PathProvider(int key, FilePath* result) { case chrome::DIR_DEFAULT_DOWNLOADS: if (!GetUserDownloadsDirectory(&cur)) return false; + create_dir = true; break; case chrome::DIR_CRASH_DUMPS: // The crash reports are always stored relative to the default user data |