| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/login/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 ConfigurePublicSessionAutoLogin(); | 223 ConfigurePublicSessionAutoLogin(); |
| 224 } | 224 } |
| 225 | 225 |
| 226 void ExistingUserController::UpdateLoginDisplay( | 226 void ExistingUserController::UpdateLoginDisplay( |
| 227 const user_manager::UserList& users) { | 227 const user_manager::UserList& users) { |
| 228 bool show_users_on_signin; | 228 bool show_users_on_signin; |
| 229 user_manager::UserList filtered_users; | 229 user_manager::UserList filtered_users; |
| 230 | 230 |
| 231 cros_settings_->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, | 231 cros_settings_->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, |
| 232 &show_users_on_signin); | 232 &show_users_on_signin); |
| 233 for (const auto& user : users) { | 233 for (auto* user : users) { |
| 234 // Skip kiosk apps for login screen user list. Kiosk apps as pods (aka new | 234 // Skip kiosk apps for login screen user list. Kiosk apps as pods (aka new |
| 235 // kiosk UI) is currently disabled and it gets the apps directly from | 235 // kiosk UI) is currently disabled and it gets the apps directly from |
| 236 // KioskAppManager. | 236 // KioskAppManager. |
| 237 if (user->GetType() == user_manager::USER_TYPE_KIOSK_APP) | 237 if (user->GetType() == user_manager::USER_TYPE_KIOSK_APP) |
| 238 continue; | 238 continue; |
| 239 | 239 |
| 240 // TODO(xiyuan): Clean user profile whose email is not in whitelist. | 240 // TODO(xiyuan): Clean user profile whose email is not in whitelist. |
| 241 const bool meets_supervised_requirements = | 241 const bool meets_supervised_requirements = |
| 242 user->GetType() != user_manager::USER_TYPE_SUPERVISED || | 242 user->GetType() != user_manager::USER_TYPE_SUPERVISED || |
| 243 user_manager::UserManager::Get()->AreSupervisedUsersAllowed(); | 243 user_manager::UserManager::Get()->AreSupervisedUsersAllowed(); |
| (...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 // Otherwise, show the unrecoverable cryptohome error UI and ask user's | 1273 // Otherwise, show the unrecoverable cryptohome error UI and ask user's |
| 1274 // permission to collect a feedback. | 1274 // permission to collect a feedback. |
| 1275 RecordPasswordChangeFlow(LOGIN_PASSWORD_CHANGE_FLOW_CRYPTOHOME_FAILURE); | 1275 RecordPasswordChangeFlow(LOGIN_PASSWORD_CHANGE_FLOW_CRYPTOHOME_FAILURE); |
| 1276 VLOG(1) << "Show unrecoverable cryptohome error dialog."; | 1276 VLOG(1) << "Show unrecoverable cryptohome error dialog."; |
| 1277 login_display_->ShowUnrecoverableCrypthomeErrorDialog(); | 1277 login_display_->ShowUnrecoverableCrypthomeErrorDialog(); |
| 1278 } | 1278 } |
| 1279 | 1279 |
| 1280 } // namespace chromeos | 1280 } // namespace chromeos |
| OLD | NEW |