| Index: base/file_util_posix.cc
|
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
|
| index 9a36fb290677a63f2a34d7ccda60693a04c17e2e..6100e10bc4fe8a8000a03750445c9828885e4662 100644
|
| --- a/base/file_util_posix.cc
|
| +++ b/base/file_util_posix.cc
|
| @@ -54,6 +54,10 @@
|
| #include <grp.h>
|
| #endif
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +#include "base/chromeos/chromeos_version.h"
|
| +#endif
|
| +
|
| namespace file_util {
|
|
|
| namespace {
|
| @@ -1016,6 +1020,11 @@ bool GetShmemTempDir(FilePath* path, bool executable) {
|
| #endif // !defined(OS_ANDROID)
|
|
|
| FilePath GetHomeDir() {
|
| +#if defined(OS_CHROMEOS)
|
| + if (base::chromeos::IsRunningOnChromeOS())
|
| + return FilePath("/home/chronos/user");
|
| +#endif
|
| +
|
| const char* home_dir = getenv("HOME");
|
| if (home_dir && home_dir[0])
|
| return FilePath(home_dir);
|
|
|