summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/login/existing_user_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/login/existing_user_controller.cc')
-rw-r--r--chrome/browser/chromeos/login/existing_user_controller.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index 6f6a298..7134474 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -44,7 +44,6 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "chromeos/dbus/dbus_thread_manager.h"
-#include "chromeos/dbus/power_manager_client.h"
#include "chromeos/dbus/session_manager_client.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
@@ -102,9 +101,6 @@ const long int kAuthCacheTransferDelayMs = 2000;
// Delay for restarting the ui if safe-mode login has failed.
const long int kSafeModeRestartUiDelayMs = 30000;
-// Delay for rebooting machine if TPM critical error was encountered.
-const long int kCriticalErrorRebootDelayMs = 3500;
-
// Makes a call to the policy subsystem to reload the policy when we detect
// authentication change.
void RefreshPoliciesOnUIThread() {
@@ -526,20 +522,6 @@ void ExistingUserController::ShowResetScreen() {
login_display_->OnFadeOut();
}
-void ExistingUserController::ShowTPMErrorAndScheduleReboot() {
- login_display_->SetUIEnabled(false);
- login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR);
- reboot_timer_.Start(
- FROM_HERE,
- base::TimeDelta::FromMilliseconds(kCriticalErrorRebootDelayMs),
- this,
- &ExistingUserController::OnRebootTimeElapsed);
-}
-
-void ExistingUserController::OnRebootTimeElapsed() {
- chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart();
-}
-
////////////////////////////////////////////////////////////////////////////////
// ExistingUserController, LoginPerformer::Delegate implementation:
//
@@ -559,8 +541,6 @@ void ExistingUserController::OnLoginFailure(const LoginFailure& failure) {
base::Unretained(DBusThreadManager::Get()->
GetSessionManagerClient())),
base::TimeDelta::FromMilliseconds(kSafeModeRestartUiDelayMs));
- } else if (failure.reason() == LoginFailure::TPM_ERROR) {
- ShowTPMErrorAndScheduleReboot();
} else if (!online_succeeded_for_.empty()) {
ShowGaiaPasswordChanged(online_succeeded_for_);
} else {