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

Unified Diff: chrome/browser/policy/cloud_policy_subsystem.h

Issue 6882038: Move writing information to the lockbox after registering with the DM server. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 8 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_policy_subsystem.h
diff --git a/chrome/browser/policy/cloud_policy_subsystem.h b/chrome/browser/policy/cloud_policy_subsystem.h
index e1ac373808879a887b4bc6bd9d9ba8ae174a11ee..915e3c08bbeb9a6dd659c8d4d07c0d9f1a19dee3 100644
--- a/chrome/browser/policy/cloud_policy_subsystem.h
+++ b/chrome/browser/policy/cloud_policy_subsystem.h
@@ -40,6 +40,7 @@ class CloudPolicySubsystem
UNMANAGED, // This device is unmanaged.
NETWORK_ERROR, // A network error occurred, retrying makes sense.
LOCAL_ERROR, // Retrying is futile.
+ TOKEN_FETCHED, // Device has been successfully registered.
SUCCESS // Policy has been fetched successfully and is in effect.
};
@@ -94,6 +95,14 @@ class CloudPolicySubsystem
// subsystem.
void StopAutoRetry();
+ // Sets wether the policy fetching should not be started immediately after
+ // token fetch.
+ void StopAfterTokenFetch(bool enabled);
+
+ // Sends a request to the device management backend to fetch policy if one
+ // isn't already outstanding.
+ void SendPolicyRequest();
+
ConfigurationPolicyProvider* GetManagedPolicyProvider();
ConfigurationPolicyProvider* GetRecommendedPolicyProvider();

Powered by Google App Engine
This is Rietveld 408576698