summaryrefslogtreecommitdiffstats
path: root/chromeos/chromeos_switches.cc
diff options
context:
space:
mode:
authornkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 00:12:33 +0000
committernkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 00:12:33 +0000
commit6bdc52278501985dd265048a5d14a2ba282d0717 (patch)
treed3ff2a034214199fd1969d21d96a508e5c5a1b99 /chromeos/chromeos_switches.cc
parent1c14973dde30f2281f74543d37df4aba711295d0 (diff)
downloadchromium_src-6bdc52278501985dd265048a5d14a2ba282d0717.zip
chromium_src-6bdc52278501985dd265048a5d14a2ba282d0717.tar.gz
chromium_src-6bdc52278501985dd265048a5d14a2ba282d0717.tar.bz2
Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME).
* Fixes GetHomeDir() for multi-profiles case on Chrome OS. * Once user signs in on Chrome OS base::DIR_HOME is overridden with primary user homedir. * Added content switch --homedir to pass that information to ppapi plugins since they run in a separate process and previous base::DIR_HOME override does not apply there. This fix doesn't require checking for --multi-profiles switch since user_id hash is known even without it. Note: download_prefs.cc still uses GetHomeDir() in its DownloadPathIsDangerous() check. // Consider downloads 'dangerous' if they go to the home directory on Linux and // to the desktop on any platform. In this context correct behavior is to use "real" base::GetHomeDir() and not "virtual one" base::DIR_HOME. Since latter is remapped to some test dir in tests, in some subfolders in Chrome OS etc. BUG=331530 TBR=vitalybuka@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270872 Review URL: https://codereview.chromium.org/200473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/chromeos_switches.cc')
-rw-r--r--chromeos/chromeos_switches.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromeos/chromeos_switches.cc b/chromeos/chromeos_switches.cc
index 74ab74c..0037cfc 100644
--- a/chromeos/chromeos_switches.cc
+++ b/chromeos/chromeos_switches.cc
@@ -138,6 +138,9 @@ const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
// If true, the Chromebook has a keyboard with a diamond key.
const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
+// Defines user homedir. This defaults to primary user homedir.
+const char kHomedir[] = "homedir";
+
// If true, profile selection in UserManager will always return active user's
// profile.
// TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we