diff options
Diffstat (limited to 'chromium/components/policy/core/common/cloud/cloud_policy_constants.cc')
-rw-r--r-- | chromium/components/policy/core/common/cloud/cloud_policy_constants.cc | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/chromium/components/policy/core/common/cloud/cloud_policy_constants.cc b/chromium/components/policy/core/common/cloud/cloud_policy_constants.cc deleted file mode 100644 index c88f1faa042..00000000000 --- a/chromium/components/policy/core/common/cloud/cloud_policy_constants.cc +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "components/policy/core/common/cloud/cloud_policy_constants.h" - -#include "base/command_line.h" -#include "components/policy/core/common/policy_switches.h" - -namespace policy { - -// Constants related to the device management protocol. -namespace dm_protocol { - -// Name constants for URL query parameters. -const char kParamAgent[] = "agent"; -const char kParamAppType[] = "apptype"; -const char kParamDeviceID[] = "deviceid"; -const char kParamDeviceType[] = "devicetype"; -const char kParamOAuthToken[] = "oauth_token"; -const char kParamPlatform[] = "platform"; -const char kParamRequest[] = "request"; -const char kParamUserAffiliation[] = "user_affiliation"; - -// String constants for the device and app type we report to the server. -const char kValueAppType[] = "Chrome"; -const char kValueDeviceType[] = "2"; -const char kValueRequestAutoEnrollment[] = "enterprise_check"; -const char kValueRequestPolicy[] = "policy"; -const char kValueRequestRegister[] = "register"; -const char kValueRequestApiAuthorization[] = "api_authorization"; -const char kValueRequestUnregister[] = "unregister"; -const char kValueRequestUploadCertificate[] = "cert_upload"; -const char kValueUserAffiliationManaged[] = "managed"; -const char kValueUserAffiliationNone[] = "none"; - -const char kChromeDevicePolicyType[] = "google/chromeos/device"; -#if defined(OS_CHROMEOS) -const char kChromeUserPolicyType[] = "google/chromeos/user"; -#elif defined(OS_ANDROID) -const char kChromeUserPolicyType[] = "google/android/user"; -#elif defined(OS_IOS) -const char kChromeUserPolicyType[] = "google/ios/user"; -#else -const char kChromeUserPolicyType[] = "google/chrome/user"; -#endif -const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; -const char kChromeExtensionPolicyType[] = "google/chrome/extension"; - -} // namespace dm_protocol - -const char* GetChromeUserPolicyType() { -#if defined(OS_ANDROID) || defined(OS_IOS) - CommandLine* command_line = CommandLine::ForCurrentProcess(); - if (command_line->HasSwitch(switches::kFakeCloudPolicyType)) - return "google/chrome/user"; -#endif - return dm_protocol::kChromeUserPolicyType; -} - -} // namespace policy |