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

Unified Diff: components/user_manager/user_manager_base.cc

Issue 2661283002: cros: Clean up SessionStateDelegate refs in Chrome (Closed)
Patch Set: update browser_finder_chromeos_unittest Created 3 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
« no previous file with comments | « components/user_manager/user_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user_manager_base.cc
diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
index 30fe4559b1880c57b96b9c7797f508bcfc3b24c6..047e5d7e1fb72fdc1ad1dfdfd52782af8b209ea7 100644
--- a/components/user_manager/user_manager_base.cc
+++ b/components/user_manager/user_manager_base.cc
@@ -191,9 +191,10 @@ void UserManagerBase::UserLoggedIn(const AccountId& account_id,
SendGaiaUserLoginMetrics(account_id);
} else if (primary_user_ != active_user_) {
// This is only needed for tests where a new user session is created
- // for non-existent user.
+ // for non-existent user. The new user is created and automatically set
+ // to active and there will be no pending user switch in such case.
SetIsCurrentUserNew(true);
- NotifyUserAddedToSession(active_user_, true /* user switch pending */);
+ NotifyUserAddedToSession(active_user_, false /* user switch pending */);
}
UMA_HISTOGRAM_ENUMERATION(
« no previous file with comments | « components/user_manager/user_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698