Index: chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc |
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc b/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc |
index 20a8fd91e06d41f9f9d0ecb9489d95281841608e..f6302b798e39bbe985cbbb30964208db04ba6063 100644 |
--- a/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc |
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc |
@@ -237,6 +237,10 @@ void DeviceCloudPolicyInitializer::EnrollmentCompleted( |
if (status.status() == EnrollmentStatus::STATUS_SUCCESS) { |
StartConnection(std::move(client)); |
+ // Request policy refresh, as some new policy types (e.g. component |
+ // policies) could be added for fetching when the connection was started by |
+ // the device cloud policy manager. |
+ manager_->RefreshPolicies(); |
Andrew T Wilson (Slow)
2016/10/28 14:49:56
This is fine, but curious why StartConnection() do
emaxx
2016/10/31 15:51:20
Usually the first policy fetch happens as the resu
Andrew T Wilson (Slow)
2016/10/31 20:44:11
I don't have a great idea here - I've never really
|
} else { |
// Some attempts to create a client may be blocked because the enrollment |
// was in progress. We give it a try again. |