| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 } | 414 } |
| 415 | 415 |
| 416 void WizardController::SkipUpdateEnrollAfterEula() { | 416 void WizardController::SkipUpdateEnrollAfterEula() { |
| 417 skip_update_enroll_after_eula_ = true; | 417 skip_update_enroll_after_eula_ = true; |
| 418 } | 418 } |
| 419 | 419 |
| 420 // static | 420 // static |
| 421 void WizardController::RegisterPrefs(PrefRegistrySimple* registry) { | 421 void WizardController::RegisterPrefs(PrefRegistrySimple* registry) { |
| 422 registry->RegisterBooleanPref(kOobeComplete, false); | 422 registry->RegisterBooleanPref(kOobeComplete, false); |
| 423 registry->RegisterIntegerPref(kDeviceRegistered, -1); | 423 registry->RegisterIntegerPref(kDeviceRegistered, -1); |
| 424 registry->RegisterBooleanPref(prefs::kEulaAccepted, false); | |
| 425 registry->RegisterStringPref(kInitialLocale, "en-US"); | 424 registry->RegisterStringPref(kInitialLocale, "en-US"); |
| 426 } | 425 } |
| 427 | 426 |
| 428 /////////////////////////////////////////////////////////////////////////////// | 427 /////////////////////////////////////////////////////////////////////////////// |
| 429 // WizardController, ExitHandlers: | 428 // WizardController, ExitHandlers: |
| 430 void WizardController::OnNetworkConnected() { | 429 void WizardController::OnNetworkConnected() { |
| 431 if (is_official_build_) { | 430 if (is_official_build_) { |
| 432 if (!IsEulaAccepted()) { | 431 if (!IsEulaAccepted()) { |
| 433 ShowEulaScreen(); | 432 ShowEulaScreen(); |
| 434 } else { | 433 } else { |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 return zero_delay_enabled_; | 886 return zero_delay_enabled_; |
| 888 } | 887 } |
| 889 | 888 |
| 890 // static | 889 // static |
| 891 void WizardController::SetZeroDelays() { | 890 void WizardController::SetZeroDelays() { |
| 892 kShowDelayMs = 0; | 891 kShowDelayMs = 0; |
| 893 zero_delay_enabled_ = true; | 892 zero_delay_enabled_ = true; |
| 894 } | 893 } |
| 895 | 894 |
| 896 } // namespace chromeos | 895 } // namespace chromeos |
| OLD | NEW |