diff options
author | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 09:38:10 +0000 |
---|---|---|
committer | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 09:38:10 +0000 |
commit | 9b1622661700d08d617b387514ef44899efc354d (patch) | |
tree | 65437672671de21ee9c04624871a0ff0c5807409 /chrome/browser/policy/cloud_policy_controller.h | |
parent | 4e0b2f346a77e78d0511644a0f749aabb3252c33 (diff) | |
download | chromium_src-9b1622661700d08d617b387514ef44899efc354d.zip chromium_src-9b1622661700d08d617b387514ef44899efc354d.tar.gz chromium_src-9b1622661700d08d617b387514ef44899efc354d.tar.bz2 |
Removed legacy support from the policy fetch request.
Refactored the http communication with the DM server to the new error format.
We now respect the HTTP error codes as described in
https://docs.google.com/a/google.com/document/d/1oGc3AFnl_OzZoYU8kkjjV_AjQNA4gKIWAo56XtnJYk8/edit?hl=en#
BUG=76412,76507
TEST=DeviceManagementBackend and CloudPolicyController tests should still work.
Review URL: http://codereview.chromium.org/6676089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/cloud_policy_controller.h')
-rw-r--r-- | chrome/browser/policy/cloud_policy_controller.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/policy/cloud_policy_controller.h b/chrome/browser/policy/cloud_policy_controller.h index 44c3195..4a75a85 100644 --- a/chrome/browser/policy/cloud_policy_controller.h +++ b/chrome/browser/policy/cloud_policy_controller.h @@ -69,8 +69,10 @@ class CloudPolicyController STATE_TOKEN_VALID, // Policy information is available and valid. STATE_POLICY_VALID, - // The service returned an error when requesting policy, ask again later. + // The service returned an error when requesting policy, will retry. STATE_POLICY_ERROR, + // The service returned an error that is not going to go away soon. + STATE_POLICY_UNAVAILABLE }; friend class CloudPolicyControllerTest; |