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

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

Issue 2619083002: Clean up SessionStateDelegate in chrome (Closed)
Patch Set: fix LauncherContextMenuTest 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
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..8a0ecfe7764f76fb78509f249f41c63b0e3137f3 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_ == session_manager::SessionState::LOGIN_SECONDARY;
James Cook 2017/01/06 23:52:43 nit: I don't think session_manager:: is needed her
xiyuan 2017/01/07 00:07:32 Right. Remove here the Line 70.
+}
+
+bool SessionManager::IsScreenLocked() const {
+ return session_state_ == session_manager::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);
}

Powered by Google App Engine
This is Rietveld 408576698