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

Unified Diff: chrome/browser/chromeos/login/screens/host_pairing_screen.cc

Issue 547503002: Redirect to the enterprise enrollment screen during remora and shark pairing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment Created 6 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/screens/host_pairing_screen.cc
diff --git a/chrome/browser/chromeos/login/screens/host_pairing_screen.cc b/chrome/browser/chromeos/login/screens/host_pairing_screen.cc
index 075297391b3f62223d60fdbed105b71056f96a0f..81aa58fd7bad99bf9d89d5471a7b9143cc6c72e7 100644
--- a/chrome/browser/chromeos/login/screens/host_pairing_screen.cc
+++ b/chrome/browser/chromeos/login/screens/host_pairing_screen.cc
@@ -63,6 +63,10 @@ void HostPairingScreen::PairingStageChanged(Stage new_stage) {
std::string desired_page;
switch (new_stage) {
+ case HostPairingController::STAGE_NONE:
+ case HostPairingController::STAGE_INITIALIZATION_ERROR: {
+ break;
+ }
case HostPairingController::STAGE_WAITING_FOR_CONTROLLER:
case HostPairingController::STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE: {
desired_page = kPageWelcome;
@@ -98,11 +102,7 @@ void HostPairingScreen::PairingStageChanged(Stage new_stage) {
break;
}
case HostPairingController::STAGE_FINISHED: {
- get_screen_observer()->OnExit(WizardController::HOST_PAIRING_FINISHED);
- break;
- }
- default: {
- NOTREACHED();
+ // This page is closed in EnrollHost.
break;
}
}
@@ -122,9 +122,9 @@ void HostPairingScreen::ConfigureHost(bool accepted_eula,
}
void HostPairingScreen::EnrollHost(const std::string& auth_token) {
- // TODO(zork,achuith): Enroll device, send error on error.
- // (http://crbug.com/374990)
- controller_->SetEnrollmentComplete(true);
+ controller_->RemoveObserver(this);
+ WizardController::default_controller()->OnEnrollmentAuthTokenReceived(
+ auth_token);
}
void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) {
« no previous file with comments | « chrome/browser/chromeos/login/screens/controller_pairing_screen.cc ('k') | chrome/browser/chromeos/login/wizard_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698