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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 10928088: Factory reset screen is added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed formatting Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index 1b8744eba4ad796ed3afd487f74192a6939e20bc..662227e1478ad2ea80e577f7e8b6cded83f6d452 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -471,6 +471,10 @@ void ExistingUserController::OnStartEnterpriseEnrollment() {
weak_factory_.GetWeakPtr()));
}
+void ExistingUserController::OnStartDeviceReset() {
+ ShowResetScreen();
+}
+
void ExistingUserController::OnEnrollmentOwnershipCheckCompleted(
DeviceSettingsService::OwnershipStatus status,
bool current_user_is_owner) {
@@ -505,6 +509,11 @@ void ExistingUserController::ShowEnrollmentScreen(bool is_auto_enrollment,
login_display_->OnFadeOut();
}
+void ExistingUserController::ShowResetScreen() {
+ host_->StartWizard(WizardController::kResetScreenName, NULL);
+ login_display_->OnFadeOut();
+}
+
////////////////////////////////////////////////////////////////////////////////
// ExistingUserController, LoginPerformer::Delegate implementation:
//
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.h ('k') | chrome/browser/chromeos/login/login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698