Index: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc |
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc |
index 7e93376f5be2a1104b45449487ae222956ebd20c..f1ce0c5b0a620fe764068d81b419b3a6684f5e1c 100644 |
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc |
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc |
@@ -126,14 +126,13 @@ void UserCloudPolicyManagerChromeOS::Connect( |
new CloudPolicyClient(std::string(), std::string(), |
kPolicyVerificationKeyHash, user_affiliation, |
device_management_service, request_context)); |
+ CreateComponentCloudPolicyService(component_policy_cache_path_, |
+ request_context, cloud_policy_client.get()); |
core()->Connect(cloud_policy_client.Pass()); |
client()->AddObserver(this); |
external_data_manager_->Connect(request_context); |
- CreateComponentCloudPolicyService(component_policy_cache_path_, |
- request_context); |
- |
// Determine the next step after the CloudPolicyService initializes. |
if (service()->IsInitializationComplete()) { |
OnInitializationCompleted(service()); |