Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: trunk/src/base/file_util_posix.cc

Issue 284333002: Revert 270872 "Move all callers of GetHomeDir() to PathService::..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/base/file_util.h ('k') | trunk/src/base/nix/xdg_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/base/file_util_posix.cc
===================================================================
--- trunk/src/base/file_util_posix.cc (revision 270950)
+++ trunk/src/base/file_util_posix.cc (working copy)
@@ -458,12 +458,8 @@
#if !defined(OS_MACOSX) // Mac implementation is in file_util_mac.mm.
FilePath GetHomeDir() {
#if defined(OS_CHROMEOS)
- 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("/");
- }
+ if (SysInfo::IsRunningOnChromeOS())
+ return FilePath("/home/chronos/user");
#endif
const char* home_dir = getenv("HOME");
« no previous file with comments | « trunk/src/base/file_util.h ('k') | trunk/src/base/nix/xdg_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698