| 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/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ash/common/system/chromeos/devicetype_utils.h" | 12 #include "ash/common/system/chromeos/devicetype_utils.h" |
| 13 #include "ash/common/wm_shell.h" |
| 13 #include "ash/shell.h" | 14 #include "ash/shell.h" |
| 14 #include "ash/wm/lock_state_controller.h" | 15 #include "ash/wm/lock_state_controller.h" |
| 15 #include "base/bind.h" | 16 #include "base/bind.h" |
| 16 #include "base/location.h" | 17 #include "base/location.h" |
| 17 #include "base/logging.h" | 18 #include "base/logging.h" |
| 18 #include "base/macros.h" | 19 #include "base/macros.h" |
| 19 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
| 20 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
| 21 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
| 22 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| (...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 proximity_auth::ScreenlockBridge::Get()->SetFocusedUser(account_id); | 1293 proximity_auth::ScreenlockBridge::Get()->SetFocusedUser(account_id); |
| 1293 if (delegate_) | 1294 if (delegate_) |
| 1294 delegate_->CheckUserStatus(account_id); | 1295 delegate_->CheckUserStatus(account_id); |
| 1295 if (!test_focus_pod_callback_.is_null()) | 1296 if (!test_focus_pod_callback_.is_null()) |
| 1296 test_focus_pod_callback_.Run(); | 1297 test_focus_pod_callback_.Run(); |
| 1297 | 1298 |
| 1298 const user_manager::User* user = | 1299 const user_manager::User* user = |
| 1299 user_manager::UserManager::Get()->FindUser(account_id); | 1300 user_manager::UserManager::Get()->FindUser(account_id); |
| 1300 // |user| may be nullptr in kiosk mode or unit tests. | 1301 // |user| may be nullptr in kiosk mode or unit tests. |
| 1301 if (user && user->is_logged_in() && !user->is_active()) { | 1302 if (user && user->is_logged_in() && !user->is_active()) { |
| 1302 ash::Shell::GetInstance()->session_state_delegate()->SwitchActiveUser( | 1303 ash::WmShell::Get()->GetSessionStateDelegate()->SwitchActiveUser( |
| 1303 account_id); | 1304 account_id); |
| 1304 } else { | 1305 } else { |
| 1305 SetUserInputMethod(account_id.GetUserEmail(), ime_state_.get()); | 1306 SetUserInputMethod(account_id.GetUserEmail(), ime_state_.get()); |
| 1306 WallpaperManager::Get()->SetUserWallpaperDelayed(account_id); | 1307 WallpaperManager::Get()->SetUserWallpaperDelayed(account_id); |
| 1307 | 1308 |
| 1308 bool use_24hour_clock = false; | 1309 bool use_24hour_clock = false; |
| 1309 if (user_manager::known_user::GetBooleanPref( | 1310 if (user_manager::known_user::GetBooleanPref( |
| 1310 account_id, prefs::kUse24HourClock, &use_24hour_clock)) { | 1311 account_id, prefs::kUse24HourClock, &use_24hour_clock)) { |
| 1311 g_browser_process->platform_part() | 1312 g_browser_process->platform_part() |
| 1312 ->GetSystemClock() | 1313 ->GetSystemClock() |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 } | 1469 } |
| 1469 | 1470 |
| 1470 void SigninScreenHandler::OnFeedbackFinished() { | 1471 void SigninScreenHandler::OnFeedbackFinished() { |
| 1471 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); | 1472 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); |
| 1472 | 1473 |
| 1473 // Recreate user's cryptohome after the feedback is attempted. | 1474 // Recreate user's cryptohome after the feedback is attempted. |
| 1474 HandleResyncUserData(); | 1475 HandleResyncUserData(); |
| 1475 } | 1476 } |
| 1476 | 1477 |
| 1477 } // namespace chromeos | 1478 } // namespace chromeos |
| OLD | NEW |