diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 18:45:13 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 18:45:13 +0000 |
commit | bc96d5610e96f0c86ca227c539643454b1960e36 (patch) | |
tree | ed75f412d57298d89153d1a008b38b5fd7619805 /chrome/common/chrome_paths_internal.h | |
parent | aae605a26c03dc4a68ef546d3f5358601fa3d3bb (diff) | |
download | chromium_src-bc96d5610e96f0c86ca227c539643454b1960e36.zip chromium_src-bc96d5610e96f0c86ca227c539643454b1960e36.tar.gz chromium_src-bc96d5610e96f0c86ca227c539643454b1960e36.tar.bz2 |
Use $XDG_CACHE_HOME for the cache on Linux. This only works for the default profile.
BUG=16976
TEST=Run Chromium, visit some webpages, make sure it's using the cache under $XDG_CACHE_HOME (~/.cache by default)
Review URL: http://codereview.chromium.org/159028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths_internal.h')
-rw-r--r-- | chrome/common/chrome_paths_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths_internal.h b/chrome/common/chrome_paths_internal.h index ce7a039..f1f0fa9 100644 --- a/chrome/common/chrome_paths_internal.h +++ b/chrome/common/chrome_paths_internal.h @@ -5,6 +5,8 @@ #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ +#include "build/build_config.h" + class FilePath; namespace chrome { @@ -13,6 +15,11 @@ namespace chrome { // DIR_USER_DATA has been overridden by a command-line option. bool GetDefaultUserDataDirectory(FilePath* result); +#if defined(OS_LINUX) +// Get the path to the user's cache directory. +bool GetUserCacheDirectory(FilePath* result); +#endif + // Get the path to the user's documents directory. bool GetUserDocumentsDirectory(FilePath* result); |