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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 } | 601 } |
602 host_->StartWizard(WizardController::kEnterpriseEnrollmentScreenName, params); | 602 host_->StartWizard(WizardController::kEnterpriseEnrollmentScreenName, params); |
603 login_display_->OnFadeOut(); | 603 login_display_->OnFadeOut(); |
604 } | 604 } |
605 | 605 |
606 void ExistingUserController::ShowResetScreen() { | 606 void ExistingUserController::ShowResetScreen() { |
607 host_->StartWizard(WizardController::kResetScreenName, NULL); | 607 host_->StartWizard(WizardController::kResetScreenName, NULL); |
608 login_display_->OnFadeOut(); | 608 login_display_->OnFadeOut(); |
609 } | 609 } |
610 | 610 |
| 611 void ExistingUserController::ShowWrongHWIDScreen() { |
| 612 host_->StartWizard(WizardController::kWrongHWIDScreenName, NULL); |
| 613 login_display_->OnFadeOut(); |
| 614 } |
| 615 |
611 void ExistingUserController::ShowTPMErrorAndScheduleReboot() { | 616 void ExistingUserController::ShowTPMErrorAndScheduleReboot() { |
612 login_display_->SetUIEnabled(false); | 617 login_display_->SetUIEnabled(false); |
613 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR); | 618 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR); |
614 reboot_timer_.Start( | 619 reboot_timer_.Start( |
615 FROM_HERE, | 620 FROM_HERE, |
616 base::TimeDelta::FromMilliseconds(kCriticalErrorRebootDelayMs), | 621 base::TimeDelta::FromMilliseconds(kCriticalErrorRebootDelayMs), |
617 this, | 622 this, |
618 &ExistingUserController::OnRebootTimeElapsed); | 623 &ExistingUserController::OnRebootTimeElapsed); |
619 } | 624 } |
620 | 625 |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 // changed. | 1022 // changed. |
1018 UserManager::Get()->SaveUserOAuthStatus( | 1023 UserManager::Get()->SaveUserOAuthStatus( |
1019 username, | 1024 username, |
1020 User::OAUTH2_TOKEN_STATUS_INVALID); | 1025 User::OAUTH2_TOKEN_STATUS_INVALID); |
1021 | 1026 |
1022 login_display_->SetUIEnabled(true); | 1027 login_display_->SetUIEnabled(true); |
1023 login_display_->ShowGaiaPasswordChanged(username); | 1028 login_display_->ShowGaiaPasswordChanged(username); |
1024 } | 1029 } |
1025 | 1030 |
1026 } // namespace chromeos | 1031 } // namespace chromeos |
OLD | NEW |