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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Special test value that commands not to create any window yet. | 116 // Special test value that commands not to create any window yet. |
117 const char WizardController::kTestNoScreenName[] = "test:nowindow"; | 117 const char WizardController::kTestNoScreenName[] = "test:nowindow"; |
118 | 118 |
119 // Initialize default controller. | 119 // Initialize default controller. |
120 // static | 120 // static |
121 WizardController* WizardController::default_controller_ = NULL; | 121 WizardController* WizardController::default_controller_ = NULL; |
122 | 122 |
123 // static | 123 // static |
124 bool WizardController::skip_user_image_selection_ = false; | 124 bool WizardController::skip_user_image_selection_ = false; |
125 | 125 |
| 126 // static |
| 127 bool WizardController::zero_delay_enabled_ = false; |
| 128 |
126 /////////////////////////////////////////////////////////////////////////////// | 129 /////////////////////////////////////////////////////////////////////////////// |
127 // WizardController, public: | 130 // WizardController, public: |
128 | 131 |
129 WizardController::WizardController(chromeos::LoginDisplayHost* host, | 132 WizardController::WizardController(chromeos::LoginDisplayHost* host, |
130 chromeos::OobeDisplay* oobe_display) | 133 chromeos::OobeDisplay* oobe_display) |
131 : current_screen_(NULL), | 134 : current_screen_(NULL), |
132 #if defined(GOOGLE_CHROME_BUILD) | 135 #if defined(GOOGLE_CHROME_BUILD) |
133 is_official_build_(true), | 136 is_official_build_(true), |
134 #else | 137 #else |
135 is_official_build_(false), | 138 is_official_build_(false), |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 } | 785 } |
783 | 786 |
784 void WizardController::SetUsageStatisticsReporting(bool val) { | 787 void WizardController::SetUsageStatisticsReporting(bool val) { |
785 usage_statistics_reporting_ = val; | 788 usage_statistics_reporting_ = val; |
786 } | 789 } |
787 | 790 |
788 bool WizardController::GetUsageStatisticsReporting() const { | 791 bool WizardController::GetUsageStatisticsReporting() const { |
789 return usage_statistics_reporting_; | 792 return usage_statistics_reporting_; |
790 } | 793 } |
791 | 794 |
| 795 // static |
| 796 bool WizardController::IsZeroDelayEnabled() { |
| 797 return zero_delay_enabled_; |
| 798 } |
| 799 |
| 800 // static |
792 void WizardController::SetZeroDelays() { | 801 void WizardController::SetZeroDelays() { |
793 kShowDelayMs = 0; | 802 kShowDelayMs = 0; |
| 803 zero_delay_enabled_ = true; |
794 } | 804 } |
795 | 805 |
796 } // namespace chromeos | 806 } // namespace chromeos |
OLD | NEW |