diff options
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); |