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..8bdc87bb3245295cb89e3346369ff7485be7250b 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/profile_policy_connector.h" |
#include "chrome/browser/prefs/pref_member.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
@@ -233,6 +234,7 @@ void LoginUtilsImpl::PrepareProfile( |
pending_requests_ = pending_requests; |
delegate_ = delegate; |
Mattias Nissler (ping if slow)
2011/05/26 10:20:20
excess newline
sfeuz
2011/05/31 07:32:31
Done.
|
+ |
// The default profile will have been changed because the ProfileManager |
// will process the notification that the UserManager sends out. |
ProfileManager::CreateDefaultProfileAsync(this); |
@@ -241,6 +243,14 @@ void LoginUtilsImpl::PrepareProfile( |
void LoginUtilsImpl::OnProfileCreated(Profile* profile) { |
CHECK(profile); |
+ // Initialize the userpolicy backend. |
+ ProfilePolicyConnector* profile_policy_connector = |
+ g_browser_process->user_policy_connector(); |
+ DCHECK(profile_policy_connector); |
Mattias Nissler (ping if slow)
2011/05/26 10:20:20
No need for the DCHECK, we crash anyway below.
sfeuz
2011/05/31 07:32:31
Is that really a reason to remove this DCHECK?
|
+ profile_policy_connector->Initialize(username_, |
Mattias Nissler (ping if slow)
2011/05/26 10:20:20
Once we have the policy wrapper object, we should
|
+ profile()->GetPath(), |
+ profile->GetTokenService()); |
+ |
BootTimesLoader* btl = BootTimesLoader::Get(); |
btl->AddLoginTimeMarker("UserProfileGotten", false); |