summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths_internal.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-28 01:49:55 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-28 01:49:55 +0000
commitc1a9f8d4c169b2eb6b32dc50d20b05f69d73237e (patch)
treed67d12634f2793e44f48d5f6b660d9f04b081978 /chrome/common/chrome_paths_internal.h
parent04abd506d6a0ae3c5130bf1e026eadbe3b24ccbf (diff)
downloadchromium_src-c1a9f8d4c169b2eb6b32dc50d20b05f69d73237e.zip
chromium_src-c1a9f8d4c169b2eb6b32dc50d20b05f69d73237e.tar.gz
chromium_src-c1a9f8d4c169b2eb6b32dc50d20b05f69d73237e.tar.bz2
Instead of appending "Downloads" to the user document directory, let each platform specify its own downloads directory.
On mac this is unimplemented. On windows it remains the user document directory + "\Downloads\", and on linux we attempt to follow their XDG setting, but fall back to ~/Downloads if they have an unsafe value in their XDG setting. Review URL: http://codereview.chromium.org/28167 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths_internal.h')
-rw-r--r--chrome/common/chrome_paths_internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/chrome_paths_internal.h b/chrome/common/chrome_paths_internal.h
index a9912dd..ce7a039 100644
--- a/chrome/common/chrome_paths_internal.h
+++ b/chrome/common/chrome_paths_internal.h
@@ -13,10 +13,12 @@ namespace chrome {
// DIR_USER_DATA has been overridden by a command-line option.
bool GetDefaultUserDataDirectory(FilePath* result);
-// Get the path to the user's documents directory. We use this to construct
-// the default download directory.
+// Get the path to the user's documents directory.
bool GetUserDocumentsDirectory(FilePath* result);
+// Get the path to the user's downloads directory.
+bool GetUserDownloadsDirectory(FilePath* result);
+
// The path to the user's desktop.
bool GetUserDesktop(FilePath* result);