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

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

Issue 2918203002: cros: Fix loading user profile w/o UserSessionManager (Closed)
Patch Set: fix tests, round 2 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 083970a25c7ad95b8a4bcbecc58fa68022a00d06..699b5baf7658ea2cf508482a200c061dd9095e30 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
emaxx 2017/06/08 19:43:54 Hmm, does the function really behave like that? It
xiyuan 2017/06/08 20:30:40 |logged_in_| is only set for ChromeOS. So for othe
+ // 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