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

Unified Diff: ash/shell/shell_delegate_impl.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/shell/shell_delegate_impl.cc
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 02c6a27a2d5d75ac1cc1d24515a34ecd9f4ad1d5..99076a5b602f52db59af0ee3f0150a7973033fec 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -92,6 +92,9 @@ class SessionStateDelegateImpl : public SessionStateDelegate {
// ash_shell has 2 users.
return 2;
}
+ virtual int GetNumberOfAdmittedForMultiProfileUsers() const OVERRIDE {
+ return GetMaximumNumberOfLoggedInUsers() - NumberOfLoggedInUsers();
+ }
virtual bool IsActiveUserSessionStarted() const OVERRIDE { return true; }
virtual bool CanLockScreen() const OVERRIDE { return true; }
virtual bool IsScreenLocked() const OVERRIDE { return screen_locked_; }

Powered by Google App Engine
This is Rietveld 408576698