summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 22:42:05 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 22:42:05 +0000
commit2b2f8f72f90cf73a432978b7f42f2abaae9112da (patch)
tree82fb9e5d6fd6dadc75d88bd9f231d583e8be63f4 /chrome/common/chrome_paths.cc
parentd3fc2565089f8471ddc4eaae1b0bd78d40981547 (diff)
downloadchromium_src-2b2f8f72f90cf73a432978b7f42f2abaae9112da.zip
chromium_src-2b2f8f72f90cf73a432978b7f42f2abaae9112da.tar.gz
chromium_src-2b2f8f72f90cf73a432978b7f42f2abaae9112da.tar.bz2
Final step needed to get be able to download things on linux.
There's still no UI though. Review URL: http://codereview.chromium.org/27097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index c3c542d..0c16079 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -72,9 +72,10 @@ bool PathProvider(int key, FilePath* result) {
if (!PathService::Get(chrome::DIR_USER_DOCUMENTS, &cur))
return false;
cur = cur.Append(FILE_PATH_LITERAL("Downloads"));
- // TODO(port): This will fail on other platforms unless we
- // implement DIR_USER_DOCUMENTS or use xdg-user-dirs to
- // get the download directory independently of DIR_USER_DOCUMENTS.
+ // TODO(port): this may not be what we want on other platforms. But it
+ // is not clear what we would prefer: $XDG_DOWNLOAD_DIR appears to point
+ // to ~/Downloads for many users, which is something we want to avoid.
+ // We probably need to add a GetUserDownloadsDirectory().
break;
case chrome::DIR_CRASH_DUMPS:
// The crash reports are always stored relative to the default user data