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

Side by Side Diff: ash/system/user/config.cc

Issue 253063002: CleanUp: Introduce UserInfo. Move session_state stuff to ash/session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/user/accounts_detailed_view.cc ('k') | ash/system/user/login_status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ash/system/user/config.h" 5 #include "ash/system/user/config.h"
6 6
7 #include "ash/session_state_delegate.h" 7 #include "ash/session/session_state_delegate.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace tray { 12 namespace tray {
13 13
14 namespace { 14 namespace {
15 15
16 // Returns true if session is blocked by e.g. the login screen. 16 // Returns true if session is blocked by e.g. the login screen.
17 bool IsUserSessionBlocked() { 17 bool IsUserSessionBlocked() {
18 return Shell::GetInstance() 18 return Shell::GetInstance()
19 ->session_state_delegate() 19 ->session_state_delegate()
20 ->IsUserSessionBlocked(); 20 ->IsUserSessionBlocked();
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24 24
25 bool IsMultiProfileSupportedAndUserActive() { 25 bool IsMultiProfileSupportedAndUserActive() {
26 return Shell::GetInstance()->delegate()->IsMultiProfilesEnabled() && 26 return Shell::GetInstance()->delegate()->IsMultiProfilesEnabled() &&
27 !IsUserSessionBlocked(); 27 !IsUserSessionBlocked();
28 } 28 }
29 29
30 bool IsMultiAccountSupportedAndUserActive() { 30 bool IsMultiAccountSupportedAndUserActive() {
31 return Shell::GetInstance()->delegate()->IsMultiAccountEnabled() && 31 return Shell::GetInstance()->delegate()->IsMultiAccountEnabled() &&
32 !IsUserSessionBlocked(); 32 !IsUserSessionBlocked();
33 } 33 }
34 34
35 } // namespace tray 35 } // namespace tray
36 } // namespace ash 36 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/user/accounts_detailed_view.cc ('k') | ash/system/user/login_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698