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

Unified Diff: ash/session/session_state_delegate.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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/session/session_state_delegate.h ('k') | ash/session/session_state_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session/session_state_delegate.cc
diff --git a/ash/session/session_state_delegate.cc b/ash/session/session_state_delegate.cc
deleted file mode 100644
index 16294313288325e0ae436c71106e97f01324f30a..0000000000000000000000000000000000000000
--- a/ash/session/session_state_delegate.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/session/session_state_delegate.h"
-
-namespace ash {
-
-bool SessionStateDelegate::IsInSecondaryLoginScreen() const {
- return GetSessionState() == session_manager::SessionState::LOGIN_SECONDARY;
-}
-
-AddUserSessionPolicy SessionStateDelegate::GetAddUserSessionPolicy() const {
- if (!IsMultiProfileAllowedByPrimaryUserPolicy())
- return AddUserSessionPolicy::ERROR_NOT_ALLOWED_PRIMARY_USER;
-
- if (NumberOfLoggedInUsers() >= GetMaximumNumberOfLoggedInUsers())
- return AddUserSessionPolicy::ERROR_MAXIMUM_USERS_REACHED;
-
- return AddUserSessionPolicy::ALLOWED;
-}
-
-} // namespace ash
« no previous file with comments | « ash/session/session_state_delegate.h ('k') | ash/session/session_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698