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

Side by Side Diff: chrome/browser/ui/ash/session_state_delegate_views.cc

Issue 560033002: Fixed suggesting adding more users into multi-profile session when we don't have more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698