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

Unified Diff: components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc

Issue 2655873002: Get enrollment token from DMServer when an Active Directory user uses ARC (Closed)
Patch Set: Fix Luis's comments Created 3 years, 10 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: components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc
index c01eb9bce5bb5bfc65c5d5733774c8d6f04b4c0e..fde9ed3fdfc42fd93ac0be5cf35cf79302a5c349 100644
--- a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc
+++ b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc
@@ -281,6 +281,9 @@ void CloudPolicyRefreshScheduler::ScheduleRefresh() {
// Need a re-registration, no use in retrying.
CancelRefresh();
return;
+ case DM_STATUS_SERVICE_ARC_DISABLED:
+ // This doesn't occur during policy refresh, don't change the schedule.
+ return;
}
NOTREACHED() << "Invalid client status " << client_->status();

Powered by Google App Engine
This is Rietveld 408576698