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

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: 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
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..58c3f0f86f712bf8a1cc4b7ab9740697a0cd564a 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_) {
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_);
@@ -1354,14 +1354,6 @@ void WizardController::OnSharkConnected(
base::MessageLoop::current()->DeleteSoon(
FROM_HERE, shark_connection_listener_.release());
shark_controller_detected_ = true;
-
- if (IsBootstrappingSlave()) {
- g_browser_process->platform_part()
- ->browser_policy_connector_chromeos()
- ->GetDeviceCloudPolicyManager()
- ->SetDeviceEnrollmentAutoStart();
- }
-
ShowHostPairingScreen();
}

Powered by Google App Engine
This is Rietveld 408576698