diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 22:39:30 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 22:39:30 +0000 |
commit | d8a80d6e6d787b0f924e54993fd3bb700ea220fb (patch) | |
tree | 73cd31322e244b11fca6e3ffebf76c5eae054ae5 /base/path_service_unittest.cc | |
parent | bbee17e594c08a4baf9379cdb22b4961a113434f (diff) | |
download | chromium_src-d8a80d6e6d787b0f924e54993fd3bb700ea220fb.zip chromium_src-d8a80d6e6d787b0f924e54993fd3bb700ea220fb.tar.gz chromium_src-d8a80d6e6d787b0f924e54993fd3bb700ea220fb.tar.bz2 |
Revert "chrome_paths: refactor and sanitize cache directory handling"
This reverts commit r67160, test failures.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67171 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service_unittest.cc')
-rw-r--r-- | base/path_service_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc index 4c41aed..c65f7a5 100644 --- a/base/path_service_unittest.cc +++ b/base/path_service_unittest.cc @@ -21,6 +21,12 @@ namespace { bool ReturnsValidPath(int dir_type) { FilePath path; bool result = PathService::Get(dir_type, &path); +#if defined(OS_POSIX) + // If chromium has never been started on this account, the cache path will not + // exist. + if (dir_type == base::DIR_USER_CACHE) + return result && !path.value().empty(); +#endif return result && !path.value().empty() && file_util::PathExists(path); } |