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

Unified Diff: chrome/browser/chromeos/login/login_utils.h

Issue 328383003: Revert of Introduce SessionManager that will contain code to start user session on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/chromeos/login/fake_login_utils.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.h
diff --git a/chrome/browser/chromeos/login/login_utils.h b/chrome/browser/chromeos/login/login_utils.h
index 4867cc29c60768670e3b01af839527aeb28651fb..bda1e0a9413699cbe176d3da33494a43d5015149 100644
--- a/chrome/browser/chromeos/login/login_utils.h
+++ b/chrome/browser/chromeos/login/login_utils.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
class GURL;
+class PrefRegistrySimple;
class PrefService;
class Profile;
@@ -33,11 +34,14 @@
#if defined(ENABLE_RLZ)
// Called after post-profile RLZ initialization.
- virtual void OnRlzInitialized() {}
+ virtual void OnRlzInitialized(Profile* profile) {}
#endif
protected:
virtual ~Delegate() {}
};
+
+ // Registers log-in related preferences.
+ static void RegisterPrefs(PrefRegistrySimple* registry);
// Get LoginUtils singleton object. If it was not set before, new default
// instance will be created.
@@ -60,12 +64,15 @@
LoginDisplayHost* login_host) = 0;
// Loads and prepares profile for the session. Fires |delegate| in the end.
+ // If |display_email| is not empty, user's displayed email will be set to
+ // this value, shown in UI.
// |user_context.username_hash| defines when user homedir is mounted.
// Also see DelegateDeleted method.
// If |has_active_session| is true than this is a case of restoring user
// session after browser crash so no need to start new session.
virtual void PrepareProfile(
const UserContext& user_context,
+ const std::string& display_email,
bool has_cookies,
bool has_active_session,
Delegate* delegate) = 0;
@@ -78,6 +85,10 @@
// |start_url| is url for launched browser to open.
virtual void CompleteOffTheRecordLogin(const GURL& start_url) = 0;
+ // Invoked when the user is logging in for the first time, or is logging in as
+ // a guest user.
+ virtual void SetFirstLoginPrefs(PrefService* prefs) = 0;
+
// Creates and returns the authenticator to use.
// Before WebUI login (Up to R14) the caller owned the returned
// Authenticator instance and had to delete it when done.
@@ -89,6 +100,12 @@
// TODO(nkostylev): Cleanup after WebUI login migration is complete.
virtual scoped_refptr<Authenticator> CreateAuthenticator(
LoginStatusConsumer* consumer) = 0;
+
+ // Restores authentication session after crash.
+ virtual void RestoreAuthenticationSession(Profile* profile) = 0;
+
+ // Initialize RLZ.
+ virtual void InitRlzDelayed(Profile* user_profile) = 0;
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/fake_login_utils.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698