Index: components/user_manager/user_manager_base.h |
diff --git a/components/user_manager/user_manager_base.h b/components/user_manager/user_manager_base.h |
index b1176870a00957a02b36d49782b66cb93926d9bb..9da1cee8fc6739f2ac80895b008418fd93d24f36 100644 |
--- a/components/user_manager/user_manager_base.h |
+++ b/components/user_manager/user_manager_base.h |
@@ -52,6 +52,7 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager { |
const std::string& user_id_hash, |
bool browser_restart) OVERRIDE; |
virtual void SwitchActiveUser(const std::string& user_id) OVERRIDE; |
+ virtual void SwitchToLastActiveUser() OVERRIDE; |
virtual void SessionStarted() OVERRIDE; |
virtual void RemoveUser(const std::string& user_id, |
RemoveUserDelegate* delegate) OVERRIDE; |
@@ -369,6 +370,12 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager { |
// as soon as user's profile is loaded. |
std::string pending_user_switch_; |
+ // ID of the user that was active in the previous session. |
+ // Preference value is stored here before first user signs in |
+ // because pref will be overidden once session restore starts. |
+ std::string last_session_active_user_; |
+ bool last_session_active_user_initialized_; |
+ |
// TaskRunner for UI thread. |
scoped_refptr<base::TaskRunner> task_runner_; |