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

Unified Diff: ash/session/session_state_delegate.cc

Issue 2048443002: ABANDONED: mash: Move shell delegate interfaces to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveshelfmodel
Patch Set: Created 4 years, 6 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/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 96f91934035aadf71586c893c792bcd8688985e2..0000000000000000000000000000000000000000
--- a/ash/session/session_state_delegate.cc
+++ /dev/null
@@ -1,29 +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() ==
- ash::SessionStateDelegate::SESSION_STATE_LOGIN_SECONDARY;
-}
-
-bool SessionStateDelegate::CanAddUserToMultiProfile(
- SessionStateDelegate::AddUserError* error) const {
- if (!IsMultiProfileAllowedByPrimaryUserPolicy()) {
- if (error)
- *error = ADD_USER_ERROR_NOT_ALLOWED_PRIMARY_USER;
- return false;
- }
- if (NumberOfLoggedInUsers() >= GetMaximumNumberOfLoggedInUsers()) {
- if (error)
- *error = ADD_USER_ERROR_MAXIMUM_USERS_REACHED;
- return false;
- }
- return true;
-}
-
-} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698