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

Unified Diff: trunk/src/chrome/app/chrome_main_delegate.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/nix/xdg_util.cc ('k') | trunk/src/chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/app/chrome_main_delegate.cc
===================================================================
--- trunk/src/chrome/app/chrome_main_delegate.cc (revision 270950)
+++ trunk/src/chrome/app/chrome_main_delegate.cc (working copy)
@@ -4,7 +4,6 @@
#include "chrome/app/chrome_main_delegate.h"
-#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/cpu.h"
#include "base/files/file_path.h"
@@ -477,16 +476,6 @@
#endif
#if defined(OS_CHROMEOS)
- // Initialize primary user homedir (in multi-profile session) as it may be
- // passed as a command line switch.
- base::FilePath homedir;
- if (command_line.HasSwitch(chromeos::switches::kHomedir)) {
- homedir = base::FilePath(
- command_line.GetSwitchValueASCII(chromeos::switches::kHomedir));
- PathService::OverrideAndCreateIfNeeded(
- base::DIR_HOME, homedir, true, false);
- }
-
// If we are recovering from a crash on ChromeOS, then we will do some
// recovery using the diagnostics module, and then continue on. We fake up a
// command line to tell it that we want it to recover, and to preserve the
« no previous file with comments | « trunk/src/base/nix/xdg_util.cc ('k') | trunk/src/chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698