| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/base_login_display_host.h" | 5 #include "chrome/browser/chromeos/login/base_login_display_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/chromeos/cros/cros_library.h" | 12 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 13 #include "chrome/browser/chromeos/cros/login_library.h" | 13 #include "chrome/browser/chromeos/cros/login_library.h" |
| 14 #include "chrome/browser/chromeos/customization_document.h" | 14 #include "chrome/browser/chromeos/customization_document.h" |
| 15 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 15 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 16 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 16 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
| 17 #include "chrome/browser/chromeos/language_preferences.h" | 17 #include "chrome/browser/chromeos/language_preferences.h" |
| 18 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 18 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 19 #include "chrome/browser/chromeos/login/helper.h" | 19 #include "chrome/browser/chromeos/login/helper.h" |
| 20 #include "chrome/browser/chromeos/login/language_switch_menu.h" | 20 #include "chrome/browser/chromeos/login/language_switch_menu.h" |
| 21 #include "chrome/browser/chromeos/login/login_utils.h" | 21 #include "chrome/browser/chromeos/login/login_utils.h" |
| 22 #include "chrome/browser/chromeos/login/user_manager.h" | 22 #include "chrome/browser/chromeos/login/user_manager.h" |
| 23 #include "chrome/browser/chromeos/login/views_login_display_host.h" | 23 #include "chrome/browser/chromeos/login/views_login_display_host.h" |
| 24 #include "chrome/browser/chromeos/login/webui_login_display_host.h" | 24 #include "chrome/browser/chromeos/login/webui_login_display_host.h" |
| 25 #include "chrome/browser/chromeos/login/wizard_controller.h" | 25 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 26 #include "chrome/browser/chromeos/mobile_config.h" |
| 26 #include "chrome/browser/chromeos/system/timezone_settings.h" | 27 #include "chrome/browser/chromeos/system/timezone_settings.h" |
| 27 #include "chrome/browser/chromeos/wm_ipc.h" | 28 #include "chrome/browser/chromeos/wm_ipc.h" |
| 28 #include "chrome/browser/policy/browser_policy_connector.h" | 29 #include "chrome/browser/policy/browser_policy_connector.h" |
| 29 #include "chrome/browser/prefs/pref_service.h" | 30 #include "chrome/browser/prefs/pref_service.h" |
| 30 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
| 31 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 32 #include "content/common/content_notification_types.h" | 33 #include "content/common/content_notification_types.h" |
| 33 #include "content/common/notification_service.h" | 34 #include "content/common/notification_service.h" |
| 34 #include "googleurl/src/gurl.h" | 35 #include "googleurl/src/gurl.h" |
| 35 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" | 36 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 if (!WizardController::IsDeviceRegistered()) { | 182 if (!WizardController::IsDeviceRegistered()) { |
| 182 SetOobeProgressBarVisible(true); | 183 SetOobeProgressBarVisible(true); |
| 183 SetOobeProgress(chromeos::BackgroundView::SIGNIN); | 184 SetOobeProgress(chromeos::BackgroundView::SIGNIN); |
| 184 } | 185 } |
| 185 SetShutdownButtonEnabled(true); | 186 SetShutdownButtonEnabled(true); |
| 186 sign_in_controller_->Init(users); | 187 sign_in_controller_->Init(users); |
| 187 | 188 |
| 188 // Initiate services customization manifest fetching. | 189 // Initiate services customization manifest fetching. |
| 189 ServicesCustomizationDocument::GetInstance()->StartFetching(); | 190 ServicesCustomizationDocument::GetInstance()->StartFetching(); |
| 190 | 191 |
| 192 // Initiate mobile config load. |
| 193 MobileConfig::GetInstance(); |
| 194 |
| 191 // Initiate device policy fetching. | 195 // Initiate device policy fetching. |
| 192 g_browser_process->browser_policy_connector()->ScheduleServiceInitialization( | 196 g_browser_process->browser_policy_connector()->ScheduleServiceInitialization( |
| 193 kPolicyServiceInitializationDelayMilliseconds); | 197 kPolicyServiceInitializationDelayMilliseconds); |
| 194 } | 198 } |
| 195 | 199 |
| 196 // BaseLoginDisplayHost -------------------------------------------------------- | 200 // BaseLoginDisplayHost -------------------------------------------------------- |
| 197 | 201 |
| 198 void BaseLoginDisplayHost::Observe(int type, | 202 void BaseLoginDisplayHost::Observe(int type, |
| 199 const NotificationSource& source, | 203 const NotificationSource& source, |
| 200 const NotificationDetails& details) { | 204 const NotificationDetails& details) { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // user has changed to during OOBE. | 342 // user has changed to during OOBE. |
| 339 if (!timezone_name.empty()) { | 343 if (!timezone_name.empty()) { |
| 340 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 344 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
| 341 icu::UnicodeString::fromUTF8(timezone_name)); | 345 icu::UnicodeString::fromUTF8(timezone_name)); |
| 342 CHECK(timezone) << "Timezone could not be set for " << timezone_name; | 346 CHECK(timezone) << "Timezone could not be set for " << timezone_name; |
| 343 chromeos::system::TimezoneSettings::GetInstance()->SetTimezone(*timezone); | 347 chromeos::system::TimezoneSettings::GetInstance()->SetTimezone(*timezone); |
| 344 } | 348 } |
| 345 } | 349 } |
| 346 | 350 |
| 347 } // namespace browser | 351 } // namespace browser |
| OLD | NEW |