Chromium Code Reviews| Index: chrome/browser/chromeos/login/login_utils.cc |
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc |
| index 9567b9fe5289ad5ba82cbf58d2d45ee20f4ba5cb..f18e5301854943dbb742800f160af09fb66d41cc 100644 |
| --- a/chrome/browser/chromeos/login/login_utils.cc |
| +++ b/chrome/browser/chromeos/login/login_utils.cc |
| @@ -38,6 +38,7 @@ |
| #include "chrome/browser/net/preconnect.h" |
| #include "chrome/browser/net/pref_proxy_config_service.h" |
| #include "chrome/browser/plugin_updater.h" |
| +#include "chrome/browser/policy/user_policy_connector.h" |
| #include "chrome/browser/prefs/pref_member.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/profiles/profile_manager.h" |
| @@ -241,6 +242,15 @@ void LoginUtilsImpl::PrepareProfile( |
| void LoginUtilsImpl::OnProfileCreated(Profile* profile) { |
| CHECK(profile); |
| + // Initialize the userpolicy backend. |
| + |
|
Mattias Nissler (ping if slow)
2011/05/31 14:14:19
excess whitespace
sfeuz
2011/06/03 08:30:35
Done.
|
| + policy::UserPolicyConnector* user_policy_connector = |
| + g_browser_process->user_policy_connector(); |
| + DCHECK(user_policy_connector); |
| + user_policy_connector->Initialize(username_, |
| + profile->GetPath(), |
| + profile->GetTokenService()); |
| + |
| BootTimesLoader* btl = BootTimesLoader::Get(); |
| btl->AddLoginTimeMarker("UserProfileGotten", false); |