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

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

Issue 1535573002: 1) Add initialization error page; 2) Add connection error page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: We don't need to set enrollment related local state for a host device since Enrollment Screen doesn… Created 5 years 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
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/screens/host_pairing_screen_actor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 021ab6f5dbbf6028c0e01ea3f11b8cb4361d2c91..6597f09668e16d8f6530de06d130b3418190f81a 100644
--- a/chrome/browser/chromeos/login/screens/host_pairing_screen.cc
+++ b/chrome/browser/chromeos/login/screens/host_pairing_screen.cc
@@ -68,6 +68,10 @@ std::string HostPairingScreen::GetName() const {
void HostPairingScreen::PairingStageChanged(Stage new_stage) {
std::string desired_page;
switch (new_stage) {
+ case HostPairingController::STAGE_INITIALIZATION_ERROR: {
+ desired_page = kPageIntializationError;
+ break;
+ }
case HostPairingController::STAGE_WAITING_FOR_CONTROLLER:
case HostPairingController::STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE: {
desired_page = kPageWelcome;
@@ -79,6 +83,10 @@ void HostPairingScreen::PairingStageChanged(Stage new_stage) {
remora_controller_->GetConfirmationCode());
break;
}
+ case HostPairingController::STAGE_CONTROLLER_CONNECTION_ERROR: {
+ desired_page = kPageConnectionError;
+ break;
+ }
case HostPairingController::STAGE_SETUP_BASIC_CONFIGURATION: {
desired_page = kPageSetupBasicConfiguration;
break;
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/screens/host_pairing_screen_actor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698