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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 SetOobeProgressBarVisible(true); | 161 SetOobeProgressBarVisible(true); |
162 SetOobeProgress(chromeos::BackgroundView::SIGNIN); | 162 SetOobeProgress(chromeos::BackgroundView::SIGNIN); |
163 } | 163 } |
164 SetShutdownButtonEnabled(true); | 164 SetShutdownButtonEnabled(true); |
165 sign_in_controller_->Init(users); | 165 sign_in_controller_->Init(users); |
166 | 166 |
167 // Initiate services customization manifest fetching. | 167 // Initiate services customization manifest fetching. |
168 ServicesCustomizationDocument::GetInstance()->StartFetching(); | 168 ServicesCustomizationDocument::GetInstance()->StartFetching(); |
169 | 169 |
170 // Initiate device policy fetching. | 170 // Initiate device policy fetching. |
171 g_browser_process->browser_policy_connector()-> | 171 g_browser_process->browser_policy_connector()->ScheduleServiceInitialization( |
172 ScheduleServiceInitialization( | 172 kPolicyServiceInitializationDelayMilliseconds); |
173 kPolicyServiceInitializationDelayMilliseconds); | |
174 } | 173 } |
175 | 174 |
176 // BaseLoginDisplayHost -------------------------------------------------------- | 175 // BaseLoginDisplayHost -------------------------------------------------------- |
177 | 176 |
178 void BaseLoginDisplayHost::Observe(NotificationType type, | 177 void BaseLoginDisplayHost::Observe(NotificationType type, |
179 const NotificationSource& source, | 178 const NotificationSource& source, |
180 const NotificationDetails& details) { | 179 const NotificationDetails& details) { |
181 CHECK(type == NotificationType::APP_TERMINATING); | 180 CHECK(type == NotificationType::APP_TERMINATING); |
182 | 181 |
183 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 182 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 if (!timezone_name.empty()) { | 306 if (!timezone_name.empty()) { |
308 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 307 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
309 icu::UnicodeString::fromUTF8(timezone_name)); | 308 icu::UnicodeString::fromUTF8(timezone_name)); |
310 CHECK(timezone) << "Timezone could not be set for " << timezone_name; | 309 CHECK(timezone) << "Timezone could not be set for " << timezone_name; |
311 chromeos::SystemAccess::GetInstance()->SetTimezone(*timezone); | 310 chromeos::SystemAccess::GetInstance()->SetTimezone(*timezone); |
312 } | 311 } |
313 } | 312 } |
314 } | 313 } |
315 | 314 |
316 } // namespace browser | 315 } // namespace browser |
OLD | NEW |