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/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 sign_in_controller_.reset(new chromeos::ExistingUserController(this)); | 160 sign_in_controller_.reset(new chromeos::ExistingUserController(this)); |
161 ShowBackground(); | 161 ShowBackground(); |
162 SetShutdownButtonEnabled(true); | 162 SetShutdownButtonEnabled(true); |
163 sign_in_controller_->Init(users); | 163 sign_in_controller_->Init(users); |
164 | 164 |
165 // Initiate services customization manifest fetching. | 165 // Initiate services customization manifest fetching. |
166 ServicesCustomizationDocument::GetInstance()->StartFetching(); | 166 ServicesCustomizationDocument::GetInstance()->StartFetching(); |
167 | 167 |
168 // Initiate device policy fetching. | 168 // Initiate device policy fetching. |
169 g_browser_process->browser_policy_connector()-> | 169 g_browser_process->browser_policy_connector()-> |
170 ScheduleServiceInitialization( | 170 ScheduleDeviceServiceInitialization( |
171 kPolicyServiceInitializationDelayMilliseconds); | 171 kPolicyServiceInitializationDelayMilliseconds); |
172 } | 172 } |
173 | 173 |
174 // BaseLoginDisplayHost -------------------------------------------------------- | 174 // BaseLoginDisplayHost -------------------------------------------------------- |
175 | 175 |
176 void BaseLoginDisplayHost::Observe(NotificationType type, | 176 void BaseLoginDisplayHost::Observe(NotificationType type, |
177 const NotificationSource& source, | 177 const NotificationSource& source, |
178 const NotificationDetails& details) { | 178 const NotificationDetails& details) { |
179 CHECK(type == NotificationType::APP_TERMINATING); | 179 CHECK(type == NotificationType::APP_TERMINATING); |
180 | 180 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 if (!timezone_name.empty()) { | 310 if (!timezone_name.empty()) { |
311 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 311 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
312 icu::UnicodeString::fromUTF8(timezone_name)); | 312 icu::UnicodeString::fromUTF8(timezone_name)); |
313 CHECK(timezone) << "Timezone could not be set for " << timezone_name; | 313 CHECK(timezone) << "Timezone could not be set for " << timezone_name; |
314 chromeos::SystemAccess::GetInstance()->SetTimezone(*timezone); | 314 chromeos::SystemAccess::GetInstance()->SetTimezone(*timezone); |
315 } | 315 } |
316 } | 316 } |
317 } | 317 } |
318 | 318 |
319 } // namespace browser | 319 } // namespace browser |
OLD | NEW |