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 7d73b734caeae28ddf4541b27f171a60d721c1a7..33d7099247104e4f4636e5ec9365fa0719a43033 100644 |
--- a/chrome/browser/chromeos/login/login_utils.cc |
+++ b/chrome/browser/chromeos/login/login_utils.cc |
@@ -498,18 +498,6 @@ void LoginUtilsImpl::PrepareProfile( |
ProfileManager::CreateDefaultProfileAsync( |
base::Bind(&LoginUtilsImpl::OnProfileCreated, AsWeakPtr())); |
- // The default profile is only partially initialized at this point. |
- // Setup the UserCloudPolicyManager so profile initialization can complete. |
- Profile* user_profile = ProfileManager::GetDefaultProfile(); |
- |
- // Initialize the new cloud policy framework, if enabled. |
- if (user_profile->GetUserCloudPolicyManager()) { |
- user_profile->GetUserCloudPolicyManager()->Initialize( |
- g_browser_process->local_state(), |
- connector->device_management_service(), |
- connector->GetUserAffiliation(username)); |
- } |
- |
if (wait_for_policy_fetch) { |
// Profile creation will block until user policy is fetched, which |
// requires the DeviceManagement token. Try to fetch it now. |