Index: chromeos/login/login_state.cc |
diff --git a/chromeos/login/login_state.cc b/chromeos/login/login_state.cc |
index d9115487c547884059b3652b27f3d64b7e649932..8fb55f640b4c4c72ac119882a234ed4a8e7343c0 100644 |
--- a/chromeos/login/login_state.cc |
+++ b/chromeos/login/login_state.cc |
@@ -57,6 +57,16 @@ void LoginState::RemoveObserver(Observer* observer) { |
observer_list_.RemoveObserver(observer); |
} |
+void LoginState::SetLoggedInStateAndPrimaryUser( |
+ LoggedInState state, |
+ LoggedInUserType type, |
+ const std::string& primary_user_hash) { |
+ DCHECK(type != LOGGED_IN_USER_NONE); |
+ primary_user_hash_ = primary_user_hash; |
+ VLOG(1) << "LoggedInStateUser: " << primary_user_hash; |
+ SetLoggedInState(state, type); |
+} |
+ |
void LoginState::SetLoggedInState(LoggedInState state, |
LoggedInUserType type) { |
if (state == logged_in_state_ && type == logged_in_user_type_) |