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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 10808061: [cros] Flip enable-new-oobe switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.h ('k') | chrome/browser/chromeos/login/wizard_in_process_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698