| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/ash/session_state_delegate_views.h" | 5 #include "chrome/browser/ui/ash/session_state_delegate_views.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "components/user_manager/empty_user_info.h" | 10 #include "components/user_manager/empty_user_info.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const { | 31 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const { |
| 32 return 3; | 32 return 3; |
| 33 } | 33 } |
| 34 | 34 |
| 35 int SessionStateDelegate::NumberOfLoggedInUsers() const { | 35 int SessionStateDelegate::NumberOfLoggedInUsers() const { |
| 36 return 1; | 36 return 1; |
| 37 } | 37 } |
| 38 | 38 |
| 39 int SessionStateDelegate::GetNumberOfAdmittedForMultiProfileUsers() const { |
| 40 return GetMaximumNumberOfLoggedInUsers() - NumberOfLoggedInUsers(); |
| 41 } |
| 42 |
| 39 bool SessionStateDelegate::IsActiveUserSessionStarted() const { | 43 bool SessionStateDelegate::IsActiveUserSessionStarted() const { |
| 40 return true; | 44 return true; |
| 41 } | 45 } |
| 42 | 46 |
| 43 bool SessionStateDelegate::CanLockScreen() const { | 47 bool SessionStateDelegate::CanLockScreen() const { |
| 44 return false; | 48 return false; |
| 45 } | 49 } |
| 46 | 50 |
| 47 bool SessionStateDelegate::IsScreenLocked() const { | 51 bool SessionStateDelegate::IsScreenLocked() const { |
| 48 return false; | 52 return false; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 101 |
| 98 void SessionStateDelegate::AddSessionStateObserver( | 102 void SessionStateDelegate::AddSessionStateObserver( |
| 99 ash::SessionStateObserver* observer) { | 103 ash::SessionStateObserver* observer) { |
| 100 NOTIMPLEMENTED(); | 104 NOTIMPLEMENTED(); |
| 101 } | 105 } |
| 102 | 106 |
| 103 void SessionStateDelegate::RemoveSessionStateObserver( | 107 void SessionStateDelegate::RemoveSessionStateObserver( |
| 104 ash::SessionStateObserver* observer) { | 108 ash::SessionStateObserver* observer) { |
| 105 NOTIMPLEMENTED(); | 109 NOTIMPLEMENTED(); |
| 106 } | 110 } |
| OLD | NEW |