Chromium Code Reviews| Index: base/base_paths_posix.cc |
| diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc |
| index d8d5ae61b7285ab113eb46718610a25e08773bf7..0025a9015c119acfb6d591267194086cecac5cd5 100644 |
| --- a/base/base_paths_posix.cc |
| +++ b/base/base_paths_posix.cc |
| @@ -85,12 +85,16 @@ bool PathProviderPosix(int key, FilePath* result) { |
| << "Try running from your chromium/src directory."; |
| return false; |
| } |
| - case base::DIR_CACHE: |
| + case base::DIR_CACHE: { |
| scoped_ptr<base::Environment> env(base::Environment::Create()); |
| FilePath cache_dir(base::nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", |
| ".cache")); |
| *result = cache_dir; |
| return true; |
| + } |
| + case base::DIR_HOME: |
| + *result = FilePath(file_util::GetHomeDir()); |
|
benwells
2012/07/11 00:02:03
Can this just be:
*result = file_util::GetHomeDir(
thorogood
2012/07/11 00:30:24
Done.
|
| + return true; |
| } |
| return false; |
| } |