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

Unified Diff: ash/test/test_session_state_delegate.cc

Issue 560033002: Fixed suggesting adding more users into multi-profile session when we don't have more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: ash/test/test_session_state_delegate.cc
diff --git a/ash/test/test_session_state_delegate.cc b/ash/test/test_session_state_delegate.cc
index eac5576997fe62cd2aad553ff7b3d06881f79e25..d6f3de856ecc0495cc1444a39668a75412c50e3b 100644
--- a/ash/test/test_session_state_delegate.cc
+++ b/ash/test/test_session_state_delegate.cc
@@ -115,6 +115,10 @@ int TestSessionStateDelegate::NumberOfLoggedInUsers() const {
return has_active_user_ ? logged_in_users_ : 0;
}
+int TestSessionStateDelegate::GetNumberOfAdmittedForMultiProfileUsers() const {
+ return user_list_.size() - NumberOfLoggedInUsers();
+}
+
bool TestSessionStateDelegate::IsActiveUserSessionStarted() const {
return active_user_session_started_;
}

Powered by Google App Engine
This is Rietveld 408576698