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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cut a circular startup dependency 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 side-by-side diff with in-line comments
Download patch
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 72c79a2d76dd7b9b6395e31d9bbd99d51eb8f060..5d2a8910cc3eeb5a6c1a8202af26e045d2b24b5c 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/browser_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,13 @@ void LoginUtilsImpl::PrepareProfile(
void LoginUtilsImpl::OnProfileCreated(Profile* profile) {
CHECK(profile);
+ // Initialize the user-policy backend.
+ policy::BrowserPolicyConnector* browser_policy_connector =
+ g_browser_process->browser_policy_connector();
+ browser_policy_connector->InitializeUserPolicy(username_,
+ profile->GetPath(),
+ profile->GetTokenService());
Mattias Nissler (ping if slow) 2011/06/21 20:09:56 Ah, so this is the reason why the profile creation
gfeher 2011/06/22 19:18:34 Only one of the reasons, but a seemingly strong on
+
BootTimesLoader* btl = BootTimesLoader::Get();
btl->AddLoginTimeMarker("UserProfileGotten", false);

Powered by Google App Engine
This is Rietveld 408576698