Index: chrome/browser/chromeos/login/users/fake_user_manager.cc |
diff --git a/chrome/browser/chromeos/login/users/fake_user_manager.cc b/chrome/browser/chromeos/login/users/fake_user_manager.cc |
index 03f5a3daef8c6b38bd8964eca953a63e821ff3db..f5f118b49aa333a82d2bfa8556d9e6c3b0955af2 100644 |
--- a/chrome/browser/chromeos/login/users/fake_user_manager.cc |
+++ b/chrome/browser/chromeos/login/users/fake_user_manager.cc |
@@ -167,6 +167,12 @@ void FakeUserManager::SwitchActiveUser(const std::string& email) { |
active_user_id_ = email; |
ProfileHelper::Get()->ActiveUserHashChanged( |
ProfileHelper::GetUserIdHashByUserIdForTesting(email)); |
+ if (user_list_.size() && !active_user_id_.empty()) { |
+ for (user_manager::UserList::const_iterator it = user_list_.begin(); |
+ it != user_list_.end(); ++it) { |
+ (*it)->set_is_active((*it)->email() == active_user_id_); |
+ } |
+ } |
} |
void FakeUserManager::SaveUserDisplayName( |