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

Unified Diff: chromeos/login/login_state.cc

Issue 23466015: network_list.js should reflect the correct logged in user type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and addressed stevenjb@'s comments. Created 7 years, 3 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 | « chromeos/login/login_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/login_state.cc
diff --git a/chromeos/login/login_state.cc b/chromeos/login/login_state.cc
index de2715a73e37b5372397aeef95a7e10405b5b539..8c8c3291d97d21baadf6daa591a5acd60984c13b 100644
--- a/chromeos/login/login_state.cc
+++ b/chromeos/login/login_state.cc
@@ -59,7 +59,7 @@ void LoginState::RemoveObserver(Observer* observer) {
void LoginState::SetLoggedInState(LoggedInState state,
LoggedInUserType type) {
- if (state == logged_in_state_)
+ if (state == logged_in_state_ && type == logged_in_user_type_)
return;
VLOG(1) << "LoggedInState: " << state << " UserType: " << type;
logged_in_state_ = state;
« no previous file with comments | « chromeos/login/login_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698