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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.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: Clear the enrollment related local state when the enrollment succeeds or an error occurs. 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
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 114229f89b317d81351acb46f35b5d4c707c2e7a..921a47fd37a41c6579492141b05b082bf55544ad 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -616,7 +616,7 @@ void WizardController::OnUpdateCompleted() {
->IsSharkRequisition();
if (is_shark || IsBootstrappingMaster()) {
ShowControllerPairingScreen();
- } else if (IsBootstrappingSlave()) {
+ } else if (IsBootstrappingSlave() && shark_controller_detected_) {
dzhioev (left Google) 2015/12/17 23:33:32 What is this change needed for?
xdai1 2015/12/17 23:49:08 The idea is that we should not show the host pairi
ShowHostPairingScreen();
} else {
ShowAutoEnrollmentCheckScreen();
@@ -1326,7 +1326,7 @@ bool WizardController::SetOnTimeZoneResolvedForTesting(
}
bool WizardController::IsHostPairingOobe() const {
- return IsRemoraRequisition() &&
+ return (IsRemoraRequisition() || IsBootstrappingSlave()) &&
(base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kHostPairingOobe) ||
shark_controller_detected_);

Powered by Google App Engine
This is Rietveld 408576698