| Index: base/file_util_posix.cc
|
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
|
| index 9270e8a209416af2f76f8b4b4b17af2f7ac93bcf..e8dec94759195d8029e1c3b7916773fffd46e7e0 100644
|
| --- a/base/file_util_posix.cc
|
| +++ b/base/file_util_posix.cc
|
| @@ -458,8 +458,12 @@ bool GetTempDir(FilePath* path) {
|
| #if !defined(OS_MACOSX) // Mac implementation is in file_util_mac.mm.
|
| FilePath GetHomeDir() {
|
| #if defined(OS_CHROMEOS)
|
| - if (SysInfo::IsRunningOnChromeOS())
|
| - return FilePath("/home/chronos/user");
|
| + if (SysInfo::IsRunningOnChromeOS()) {
|
| + // On Chrome OS chrome::DIR_USER_DATA is overriden with a primary user
|
| + // homedir once it becomes available.
|
| + NOTREACHED() << "Called GetHomeDir() without base::DIR_HOME override";
|
| + return FilePath("/");
|
| + }
|
| #endif
|
|
|
| const char* home_dir = getenv("HOME");
|
|
|