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 075e016b0cc633ce86df765d8c634b9134c190d4..7b5e6a0429835e2241ce93a827018540e8e65455 100644 |
--- a/chrome/browser/chromeos/login/wizard_controller.cc |
+++ b/chrome/browser/chromeos/login/wizard_controller.cc |
@@ -135,7 +135,8 @@ WizardController::WizardController(chromeos::LoginDisplayHost* host, |
is_out_of_box_(false), |
host_(host), |
oobe_display_(oobe_display), |
- usage_statistics_reporting_(true) { |
+ usage_statistics_reporting_(true), |
+ skip_update_enroll_after_eula_(false) { |
DCHECK(default_controller_ == NULL); |
default_controller_ = this; |
} |
@@ -412,7 +413,12 @@ void WizardController::OnEulaAccepted() { |
#endif |
} |
- InitiateOOBEUpdate(); |
+ if (skip_update_enroll_after_eula_) { |
+ PerformPostEulaActions(); |
+ ShowEnterpriseEnrollmentScreen(); |
+ } else { |
+ InitiateOOBEUpdate(); |
+ } |
} |
void WizardController::OnUpdateErrorCheckingForUpdate() { |
@@ -484,16 +490,19 @@ void WizardController::OnOOBECompleted() { |
} |
void WizardController::InitiateOOBEUpdate() { |
+ PerformPostEulaActions(); |
+ GetUpdateScreen()->StartUpdate(); |
+ SetCurrentScreenSmooth(GetUpdateScreen(), true); |
+} |
+ |
+void WizardController::PerformPostEulaActions() { |
// Now that EULA has been accepted (for official builds), enable portal check. |
// ChromiumOS builds would go though this code path too. |
chromeos::CrosLibrary::Get()->GetNetworkLibrary()-> |
SetDefaultCheckPortalList(); |
host_->CheckForAutoEnrollment(); |
Nikita (slow)
2012/04/16 16:24:47
Joao: Even though we'll be starting auto enrollmen
|
- GetUpdateScreen()->StartUpdate(); |
- SetCurrentScreenSmooth(GetUpdateScreen(), true); |
} |
- |
void WizardController::SetCurrentScreen(WizardScreen* new_current) { |
SetCurrentScreenSmooth(new_current, false); |
} |
@@ -732,17 +741,21 @@ void WizardController::OnExit(ExitCodes exit_code) { |
} |
} |
+void WizardController::SkipUpdateEnrollAfterEula() { |
+ skip_update_enroll_after_eula_ = true; |
+} |
+ |
void WizardController::OnSetUserNamePassword(const std::string& username, |
const std::string& password) { |
username_ = username; |
password_ = password; |
} |
-void WizardController::set_usage_statistics_reporting(bool val) { |
+void WizardController::SetUsageStatisticsReporting(bool val) { |
usage_statistics_reporting_ = val; |
} |
-bool WizardController::usage_statistics_reporting() const { |
+bool WizardController::GetUsageStatisticsReporting() const { |
return usage_statistics_reporting_; |
} |