diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 01:07:12 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 01:07:12 +0000 |
commit | b7045486e09d1e059e9eb3b7a5013132046495c8 (patch) | |
tree | 6cf49f494c9dc7a3de8ca4c5dd61c886235b5f22 /base | |
parent | 82215af6ee16b2519832ff4676c13b7f240f8c37 (diff) | |
download | chromium_src-b7045486e09d1e059e9eb3b7a5013132046495c8.zip chromium_src-b7045486e09d1e059e9eb3b7a5013132046495c8.tar.gz chromium_src-b7045486e09d1e059e9eb3b7a5013132046495c8.tar.bz2 |
Mac: Rename DIR_CACHE to DIR_USER_CACHE, which is already used on Linux.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/463005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/base_paths.h | 5 | ||||
-rw-r--r-- | base/base_paths_mac.h | 1 | ||||
-rw-r--r-- | base/base_paths_mac.mm | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/base/base_paths.h b/base/base_paths.h index 7718fbe..6a8342e 100644 --- a/base/base_paths.h +++ b/base/base_paths.h @@ -31,10 +31,11 @@ enum { DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful // for tests that need to locate various resources. It // should not be used outside of test code. -#if defined(OS_LINUX) +#if defined(OS_POSIX) DIR_USER_CACHE, // Directory where user cache data resides. The Chromium // browser cache can be a subdirectory of DIR_USER_CACHE. - // This is $XDG_CACHE_HOME on Linux. + // This is $XDG_CACHE_HOME on Linux and ~/Library/Caches + // on Mac. #endif PATH_END diff --git a/base/base_paths_mac.h b/base/base_paths_mac.h index 60dd0f3..ac75402 100644 --- a/base/base_paths_mac.h +++ b/base/base_paths_mac.h @@ -14,7 +14,6 @@ namespace base { enum { PATH_MAC_START = 200, - DIR_CACHE, // ~/Library/Caches DIR_APP_DATA, // ~/Library/Application Support PATH_MAC_END diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm index a4bbdac..ee0de67 100644 --- a/base/base_paths_mac.mm +++ b/base/base_paths_mac.mm @@ -52,7 +52,7 @@ bool PathProviderMac(int key, FilePath* result) { DCHECK(!cur.empty()); break; } - case base::DIR_CACHE: + case base::DIR_USER_CACHE: return GetUserDirectory(NSCachesDirectory, result); case base::DIR_APP_DATA: return GetUserDirectory(NSApplicationSupportDirectory, result); |