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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "chrome/browser/chromeos/net/network_portal_detector.h" | 46 #include "chrome/browser/chromeos/net/network_portal_detector.h" |
47 #include "chrome/browser/chromeos/settings/cros_settings.h" | 47 #include "chrome/browser/chromeos/settings/cros_settings.h" |
48 #include "chrome/browser/chromeos/settings/cros_settings_names.h" | 48 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
49 #include "chrome/browser/chromeos/system/statistics_provider.h" | 49 #include "chrome/browser/chromeos/system/statistics_provider.h" |
50 #include "chrome/browser/profiles/profile.h" | 50 #include "chrome/browser/profiles/profile.h" |
51 #include "chrome/browser/profiles/profile_manager.h" | 51 #include "chrome/browser/profiles/profile_manager.h" |
52 #include "chrome/browser/ui/options/options_util.h" | 52 #include "chrome/browser/ui/options/options_util.h" |
53 #include "chrome/common/chrome_constants.h" | 53 #include "chrome/common/chrome_constants.h" |
54 #include "chrome/common/chrome_notification_types.h" | 54 #include "chrome/common/chrome_notification_types.h" |
55 #include "chrome/common/pref_names.h" | 55 #include "chrome/common/pref_names.h" |
| 56 #include "chromeos/chromeos_constants.h" |
56 #include "chromeos/dbus/dbus_thread_manager.h" | 57 #include "chromeos/dbus/dbus_thread_manager.h" |
57 #include "chromeos/dbus/session_manager_client.h" | 58 #include "chromeos/dbus/session_manager_client.h" |
58 #include "content/public/browser/browser_thread.h" | 59 #include "content/public/browser/browser_thread.h" |
59 #include "content/public/browser/notification_service.h" | 60 #include "content/public/browser/notification_service.h" |
60 #include "content/public/browser/notification_source.h" | 61 #include "content/public/browser/notification_source.h" |
61 #include "content/public/browser/notification_types.h" | 62 #include "content/public/browser/notification_types.h" |
62 #include "ui/base/accelerators/accelerator.h" | 63 #include "ui/base/accelerators/accelerator.h" |
63 #include "ui/base/l10n/l10n_util.h" | 64 #include "ui/base/l10n/l10n_util.h" |
64 | 65 |
65 #if defined(USE_LINUX_BREAKPAD) | 66 #if defined(USE_LINUX_BREAKPAD) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 skip_update_enroll_after_eula_(false), | 161 skip_update_enroll_after_eula_(false), |
161 login_screen_started_(false), | 162 login_screen_started_(false), |
162 user_image_screen_return_to_previous_hack_(false), | 163 user_image_screen_return_to_previous_hack_(false), |
163 force_enrollment_(false), | 164 force_enrollment_(false), |
164 can_exit_enrollment_(true) { | 165 can_exit_enrollment_(true) { |
165 DCHECK(default_controller_ == NULL); | 166 DCHECK(default_controller_ == NULL); |
166 default_controller_ = this; | 167 default_controller_ = this; |
167 | 168 |
168 chromeos::system::StatisticsProvider* provider = | 169 chromeos::system::StatisticsProvider* provider = |
169 chromeos::system::StatisticsProvider::GetInstance(); | 170 chromeos::system::StatisticsProvider::GetInstance(); |
170 provider->GetMachineFlag(chrome::kOemIsEnterpriseManagedKey, | 171 provider->GetMachineFlag(chromeos::kOemIsEnterpriseManagedKey, |
171 &force_enrollment_); | 172 &force_enrollment_); |
172 provider->GetMachineFlag(chrome::kOemCanExitEnterpriseEnrollmentKey, | 173 provider->GetMachineFlag(chromeos::kOemCanExitEnterpriseEnrollmentKey, |
173 &can_exit_enrollment_); | 174 &can_exit_enrollment_); |
174 } | 175 } |
175 | 176 |
176 WizardController::~WizardController() { | 177 WizardController::~WizardController() { |
177 if (default_controller_ == this) { | 178 if (default_controller_ == this) { |
178 default_controller_ = NULL; | 179 default_controller_ = NULL; |
179 } else { | 180 } else { |
180 NOTREACHED() << "More than one controller are alive."; | 181 NOTREACHED() << "More than one controller are alive."; |
181 } | 182 } |
182 } | 183 } |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 return zero_delay_enabled_; | 790 return zero_delay_enabled_; |
790 } | 791 } |
791 | 792 |
792 // static | 793 // static |
793 void WizardController::SetZeroDelays() { | 794 void WizardController::SetZeroDelays() { |
794 kShowDelayMs = 0; | 795 kShowDelayMs = 0; |
795 zero_delay_enabled_ = true; | 796 zero_delay_enabled_ = true; |
796 } | 797 } |
797 | 798 |
798 } // namespace chromeos | 799 } // namespace chromeos |
OLD | NEW |