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

Side by Side Diff: chromeos/login/login_state.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « chromeos/login/login_state.h ('k') | chromeos/login/user_names.h » ('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 (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 "chromeos/login/login_state.h" 5 #include "chromeos/login/login_state.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/sys_info.h" 9 #include "base/sys_info.h"
10 #include "chromeos/chromeos_switches.h" 10 #include "chromeos/chromeos_switches.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool LoginState::IsInSafeMode() const { 90 bool LoginState::IsInSafeMode() const {
91 DCHECK(!always_logged_in_ || logged_in_state_ != LOGGED_IN_SAFE_MODE); 91 DCHECK(!always_logged_in_ || logged_in_state_ != LOGGED_IN_SAFE_MODE);
92 return logged_in_state_ == LOGGED_IN_SAFE_MODE; 92 return logged_in_state_ == LOGGED_IN_SAFE_MODE;
93 } 93 }
94 94
95 bool LoginState::IsGuestSessionUser() const { 95 bool LoginState::IsGuestSessionUser() const {
96 return logged_in_user_type_ == LOGGED_IN_USER_GUEST; 96 return logged_in_user_type_ == LOGGED_IN_USER_GUEST;
97 } 97 }
98 98
99 bool LoginState::IsPublicSessionUser() const { 99 bool LoginState::IsPublicSessionUser() const {
100 return logged_in_user_type_ == LOGGED_IN_USER_PUBLIC_ACCOUNT || 100 return logged_in_user_type_ == LOGGED_IN_USER_PUBLIC_ACCOUNT;
101 logged_in_user_type_ == LOGGED_IN_USER_RETAIL_MODE;
102 } 101 }
103 102
104 bool LoginState::IsKioskApp() const { 103 bool LoginState::IsKioskApp() const {
105 return logged_in_user_type_ == LOGGED_IN_USER_KIOSK_APP; 104 return logged_in_user_type_ == LOGGED_IN_USER_KIOSK_APP;
106 } 105 }
107 106
108 bool LoginState::UserHasNetworkProfile() const { 107 bool LoginState::UserHasNetworkProfile() const {
109 if (!IsUserLoggedIn()) 108 if (!IsUserLoggedIn())
110 return false; 109 return false;
111 return logged_in_user_type_ != LOGGED_IN_USER_PUBLIC_ACCOUNT; 110 return logged_in_user_type_ != LOGGED_IN_USER_PUBLIC_ACCOUNT;
(...skipping 19 matching lines...) Expand all
131 130
132 LoginState::~LoginState() { 131 LoginState::~LoginState() {
133 } 132 }
134 133
135 void LoginState::NotifyObservers() { 134 void LoginState::NotifyObservers() {
136 FOR_EACH_OBSERVER(LoginState::Observer, observer_list_, 135 FOR_EACH_OBSERVER(LoginState::Observer, observer_list_,
137 LoggedInStateChanged()); 136 LoggedInStateChanged());
138 } 137 }
139 138
140 } // namespace chromeos 139 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login/login_state.h ('k') | chromeos/login/user_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698