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

Unified Diff: components/session_manager/core/session_manager.cc

Issue 2619083002: Clean up SessionStateDelegate in chrome (Closed)
Patch Set: rebase Created 3 years, 11 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/session_manager/core/session_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/session_manager/core/session_manager.cc
diff --git a/components/session_manager/core/session_manager.cc b/components/session_manager/core/session_manager.cc
index db1c229a7688154e1b7667e3caed4dc8e28f6c6c..d7a194676f0d9c7d4ef30d9565f34f45001c0d93 100644
--- a/components/session_manager/core/session_manager.cc
+++ b/components/session_manager/core/session_manager.cc
@@ -62,6 +62,19 @@ void SessionManager::SessionStarted() {
session_started_ = true;
}
+bool SessionManager::IsInSecondaryLoginScreen() const {
+ return session_state_ == SessionState::LOGIN_SECONDARY;
+}
+
+bool SessionManager::IsScreenLocked() const {
+ return session_state_ == SessionState::LOCKED;
+}
+
+uint32_t SessionManager::GetMaximumNumberOfUserSessions() const {
+ // Limits the number of logged in users to 10 due to memory constraints.
+ return 10u;
+}
+
void SessionManager::AddObserver(SessionManagerObserver* observer) {
observers_.AddObserver(observer);
}
« no previous file with comments | « components/session_manager/core/session_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698