Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: chrome/browser/chromeos/login/base_login_display_host.cc

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments by mnissler. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/background_view.cc ('k') | chrome/browser/chromeos/login/enterprise_enrollment_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698