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

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc

Issue 2441653003: Enable fetching of admin policies for login screen apps (Closed)
Patch Set: Created 4 years, 2 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/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.

Powered by Google App Engine
This is Rietveld 408576698