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

Unified Diff: chrome/browser/profiles/profile_manager.h

Issue 2918203002: cros: Fix loading user profile w/o UserSessionManager (Closed)
Patch Set: rebase Created 3 years, 6 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
Index: chrome/browser/profiles/profile_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index 607736e022556134e06c24bca81c990f9eafbff6..b3fa18058e70eb48e958419e45dfbc0c93baec44 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -80,6 +80,12 @@ class ProfileManager : public content::NotificationObserver,
// TODO(skuhne): Move into ash's new user management function.
static Profile* GetActiveUserProfile();
+ // Load and return the initial profile for browser. On ChromeOS, this returns
+ // either the sign-in profile or the active user profile depending on whether
+ // browser is started normally or is restarted after crash. On other
+ // platforms, this returns the default profile.
+ static Profile* CreateInitialProfile();
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698