diff options
author | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 17:23:27 +0000 |
---|---|---|
committer | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 17:23:27 +0000 |
commit | b60323e7b6082857e01c074d6f7f6382b24d7118 (patch) | |
tree | 3c5e3019f4ac138f6405d84df23afe98fea26617 /chrome/browser/policy/device_management_backend_impl.h | |
parent | 6e80610f8ca0c98147f632e111714c33416700ea (diff) | |
download | chromium_src-b60323e7b6082857e01c074d6f7f6382b24d7118.zip chromium_src-b60323e7b6082857e01c074d6f7f6382b24d7118.tar.gz chromium_src-b60323e7b6082857e01c074d6f7f6382b24d7118.tar.bz2 |
Pass user_affiliation request parameter on user cloud policy requests.
BUG=chromium-os:17809
TEST=Enroll device, login as an enterprise user, check user_affiliation parameter in policy requests.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98987
Review URL: http://codereview.chromium.org/7810025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98996 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/device_management_backend_impl.h')
-rw-r--r-- | chrome/browser/policy/device_management_backend_impl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/policy/device_management_backend_impl.h b/chrome/browser/policy/device_management_backend_impl.h index 6a9ced4..4354c98 100644 --- a/chrome/browser/policy/device_management_backend_impl.h +++ b/chrome/browser/policy/device_management_backend_impl.h @@ -35,6 +35,7 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend { static const char kParamOAuthToken[]; static const char kParamPlatform[]; static const char kParamRequest[]; + static const char kParamUserAffiliation[]; // String constants for the device and app type we report to the server. static const char kValueAppType[]; @@ -42,6 +43,8 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend { static const char kValueRequestPolicy[]; static const char kValueRequestRegister[]; static const char kValueRequestUnregister[]; + static const char kValueUserAffiliationManaged[]; + static const char kValueUserAffiliationNone[]; private: friend class DeviceManagementJobBase; @@ -70,9 +73,14 @@ class DeviceManagementBackendImpl : public DeviceManagementBackend { virtual void ProcessPolicyRequest( const std::string& device_management_token, const std::string& device_id, + CloudPolicyDataStore::UserAffiliation affiliation, const em::DevicePolicyRequest& request, DevicePolicyResponseDelegate* response_delegate); + // Converts a user affiliation to the appropriate query parameter value. + static const char* UserAffiliationToString( + CloudPolicyDataStore::UserAffiliation affiliation); + // Keeps track of the jobs currently in flight. JobSet pending_jobs_; |