summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile_manager.h
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-22 23:08:30 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-22 23:08:30 +0000
commitddf8a4b03ca007cc55ead2000aa6b54d0319cd56 (patch)
treeaa003d9d9267aaf96bdcdddc121d1a768724e56d /chrome/browser/profile_manager.h
parent9a5ed1bb31b06504a4baf190ad7f87cf5d703653 (diff)
downloadchromium_src-ddf8a4b03ca007cc55ead2000aa6b54d0319cd56.zip
chromium_src-ddf8a4b03ca007cc55ead2000aa6b54d0319cd56.tar.gz
chromium_src-ddf8a4b03ca007cc55ead2000aa6b54d0319cd56.tar.bz2
We had a problem where if chrome crashed on cros and was relaunched
it would always run with the Default profile. This meant that two different users could see the same data...a big problem. We patched in the OS by deleting the profile directory each time but this is the right fix. When the session_manager reruns Chrome on a crash it will now pass a new flag (--login-user). Chrome uses this and ensures that the profile dir (specified by --login-profile) is mounted as an encrypted drive. If this flag isn't specified then Chrome uses the Default profile, but in incognito mode so no data is written. BUG=chromiumos:1967 TEST=Login to chromeos as user1, in a terminal kill the browser process, chrome relaunches, log into gmail, sign out (using menu or power button). Login as user2, kill browser process, chrome relaunches, go to gmail. Ensure that user1 isn't logged in. Review URL: http://codereview.chromium.org/1094009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile_manager.h')
-rw-r--r--chrome/browser/profile_manager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/profile_manager.h b/chrome/browser/profile_manager.h
index 0e6e8db..2981225 100644
--- a/chrome/browser/profile_manager.h
+++ b/chrome/browser/profile_manager.h
@@ -74,15 +74,15 @@ class ProfileManager : public NonThreadSafe,
// Invokes ShutdownSessionService() on all profiles.
static void ShutdownSessionServices();
- // Returns profile to use for Chrome in login wizard mode.
- static Profile* GetLoginWizardProfile();
-
// Returns the default profile. This adds the profile to the
// ProfileManager if it doesn't already exist. This method returns NULL if
// the profile doesn't exist and we can't create it.
- // The profile used can be overridden by using --profile on
+ // The profile used can be overridden by using --login-profile on cros.
Profile* GetDefaultProfile(const FilePath& user_data_dir);
+ // Same as instance method but provides the default user_data_dir as well.
+ static Profile* GetDefaultProfile();
+
// Returns a profile for a specific profile directory within the user data
// dir. This will return an existing profile it had already been created,
// otherwise it will create and manage it.