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

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

Issue 7810025: Pass user_affiliation request parameter on user cloud policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build breakage. Created 9 years, 4 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/device_management_backend_impl.h
diff --git a/chrome/browser/policy/device_management_backend_impl.h b/chrome/browser/policy/device_management_backend_impl.h
index 6a9ced4652e175bdeb1628e30f5608b9fc2ab659..4354c9823db4a37389250966c46fff45b1873131 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_;
« no previous file with comments | « chrome/browser/policy/device_management_backend.h ('k') | chrome/browser/policy/device_management_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698