| 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" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 SetOobeProgressBarVisible(true); | 181 SetOobeProgressBarVisible(true); |
| 182 SetOobeProgress(chromeos::BackgroundView::SIGNIN); | 182 SetOobeProgress(chromeos::BackgroundView::SIGNIN); |
| 183 } | 183 } |
| 184 SetShutdownButtonEnabled(true); | 184 SetShutdownButtonEnabled(true); |
| 185 sign_in_controller_->Init(users); | 185 sign_in_controller_->Init(users); |
| 186 | 186 |
| 187 // Initiate services customization manifest fetching. | 187 // Initiate services customization manifest fetching. |
| 188 ServicesCustomizationDocument::GetInstance()->StartFetching(); | 188 ServicesCustomizationDocument::GetInstance()->StartFetching(); |
| 189 | 189 |
| 190 // Initiate device policy fetching. | 190 // Initiate device policy fetching. |
| 191 g_browser_process->browser_policy_connector()-> | 191 g_browser_process->browser_policy_connector()->ScheduleServiceInitialization( |
| 192 ScheduleServiceInitialization( | 192 kPolicyServiceInitializationDelayMilliseconds); |
| 193 kPolicyServiceInitializationDelayMilliseconds); | |
| 194 } | 193 } |
| 195 | 194 |
| 196 // BaseLoginDisplayHost -------------------------------------------------------- | 195 // BaseLoginDisplayHost -------------------------------------------------------- |
| 197 | 196 |
| 198 void BaseLoginDisplayHost::Observe(NotificationType type, | 197 void BaseLoginDisplayHost::Observe(NotificationType type, |
| 199 const NotificationSource& source, | 198 const NotificationSource& source, |
| 200 const NotificationDetails& details) { | 199 const NotificationDetails& details) { |
| 201 CHECK(type == NotificationType::APP_EXITING); | 200 CHECK(type == NotificationType::APP_EXITING); |
| 202 | 201 |
| 203 registrar_.RemoveAll(); | 202 registrar_.RemoveAll(); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 if (!timezone_name.empty()) { | 324 if (!timezone_name.empty()) { |
| 326 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 325 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
| 327 icu::UnicodeString::fromUTF8(timezone_name)); | 326 icu::UnicodeString::fromUTF8(timezone_name)); |
| 328 CHECK(timezone) << "Timezone could not be set for " << timezone_name; | 327 CHECK(timezone) << "Timezone could not be set for " << timezone_name; |
| 329 chromeos::SystemAccess::GetInstance()->SetTimezone(*timezone); | 328 chromeos::SystemAccess::GetInstance()->SetTimezone(*timezone); |
| 330 } | 329 } |
| 331 } | 330 } |
| 332 } | 331 } |
| 333 | 332 |
| 334 } // namespace browser | 333 } // namespace browser |
| OLD | NEW |