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

Unified Diff: chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.cc

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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/policy/cloud/cloud_policy_refresh_scheduler.cc
diff --git a/chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.cc b/chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.cc
index 30565c6bb8d8b2f96786fdd55787ec2b203cd431..4a2d668830cb9cf41078a965976db961abea2a08 100644
--- a/chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.cc
+++ b/chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.cc
@@ -91,6 +91,12 @@ void CloudPolicyRefreshScheduler::OnRegistrationStateChanged(
RefreshNow();
}
+void CloudPolicyRefreshScheduler::OnRobotAuthCodesFetched(
+ CloudPolicyClient* client) {
+ // This only happens at registration, which is handled by
+ // OnRobotAuthCodesFetched above, so no need to fetch policy again.
+}
+
void CloudPolicyRefreshScheduler::OnClientError(CloudPolicyClient* client) {
// Save the status for below.
DeviceManagementStatus status = client_->status();

Powered by Google App Engine
This is Rietveld 408576698