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

Unified Diff: ash/common/session/session_controller.cc

Issue 2637403007: cros: Change max users to be a constant (Closed)
Patch Set: fix test 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 | « ash/common/session/session_controller.h ('k') | ash/common/session/session_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_controller.cc
diff --git a/ash/common/session/session_controller.cc b/ash/common/session/session_controller.cc
index 7df95c94f45cd30d7fa43b3ae7804b1882964807..d108b3349aed0a1996ef0d15aa674b5393c33848 100644
--- a/ash/common/session/session_controller.cc
+++ b/ash/common/session/session_controller.cc
@@ -23,7 +23,7 @@ void SessionController::BindRequest(mojom::SessionControllerRequest request) {
}
int SessionController::GetMaximumNumberOfLoggedInUsers() const {
- return static_cast<int>(max_users_);
+ return session_manager::kMaxmiumNumberOfUserSessions;
}
int SessionController::NumberOfLoggedInUsers() const {
@@ -93,7 +93,6 @@ void SessionController::SetClient(mojom::SessionControllerClientPtr client) {
}
void SessionController::SetSessionInfo(mojom::SessionInfoPtr info) {
- max_users_ = info->max_users;
can_lock_ = info->can_lock_screen;
should_lock_screen_automatically_ = info->should_lock_screen_automatically;
add_user_session_policy_ = info->add_user_session_policy;
« no previous file with comments | « ash/common/session/session_controller.h ('k') | ash/common/session/session_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698