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

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

Issue 12218078: Implement a policy to autologin a public account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last upload failed Created 7 years, 10 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/chromeos/login/existing_user_controller.h
diff --git a/chrome/browser/chromeos/login/existing_user_controller.h b/chrome/browser/chromeos/login/existing_user_controller.h
index 73e5f0db2d94cfb3e2dbc6a4f784aa0c62732848..dd82d473964a8127f09f0b9112adf3e8ffe3ec2e 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.h
+++ b/chrome/browser/chromeos/login/existing_user_controller.h
@@ -63,6 +63,12 @@ class ExistingUserController : public LoginDisplay::Delegate,
// Tells the controller to resume a pending login.
void ResumeLogin();
+ // Start the public account auto-login timer.
bartfab (slow) 2013/02/11 09:46:01 Nit: s/public account/public session/ (here and el
Nikita (slow) 2013/02/11 09:56:58 nit: General comment about naming of these two met
dconnelly 2013/02/11 16:17:56 Done.
dconnelly 2013/02/11 16:17:56 Done.
+ void StartAutoLoginTimer();
+
+ // Stop the public account auto-login timer when a login attempt begins.
+ void StopAutoLoginTimer();
+
// LoginDisplay::Delegate: implementation
virtual void CancelPasswordChangedFlow() OVERRIDE;
virtual void CreateAccount() OVERRIDE;
@@ -77,6 +83,7 @@ class ExistingUserController : public LoginDisplay::Delegate,
virtual void LoginAsRetailModeUser() OVERRIDE;
virtual void LoginAsGuest() OVERRIDE;
virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
+ virtual void OnSigninScreenReady() OVERRIDE;
virtual void OnUserSelected(const std::string& username) OVERRIDE;
virtual void OnStartEnterpriseEnrollment() OVERRIDE;
virtual void OnStartDeviceReset() OVERRIDE;
@@ -194,6 +201,9 @@ class ExistingUserController : public LoginDisplay::Delegate,
// Updates the |login_display_| attached to this controller.
void UpdateLoginDisplay(const UserList& users);
+ // Public account auto-login timer.
+ base::OneShotTimer<ExistingUserController> auto_login_timer_;
+
// Used to execute login operations.
scoped_ptr<LoginPerformer> login_performer_;
@@ -257,6 +267,9 @@ class ExistingUserController : public LoginDisplay::Delegate,
// session.
bool do_auto_enrollment_;
+ // Whether the sign-in UI is finished loading.
+ bool signin_screen_ready_;
+
// The username used for auto-enrollment, if it was triggered.
std::string auto_enrollment_username_;

Powered by Google App Engine
This is Rietveld 408576698