| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "components/policy/core/common/policy_switches.h" | 10 #include "components/policy/core/common/policy_switches.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // String constants for the device and app type we report to the server. | 30 // String constants for the device and app type we report to the server. |
| 31 const char kValueAppType[] = "Chrome"; | 31 const char kValueAppType[] = "Chrome"; |
| 32 const char kValueDeviceType[] = "2"; | 32 const char kValueDeviceType[] = "2"; |
| 33 const char kValueRequestAutoEnrollment[] = "enterprise_check"; | 33 const char kValueRequestAutoEnrollment[] = "enterprise_check"; |
| 34 const char kValueRequestPolicy[] = "policy"; | 34 const char kValueRequestPolicy[] = "policy"; |
| 35 const char kValueRequestRegister[] = "register"; | 35 const char kValueRequestRegister[] = "register"; |
| 36 const char kValueRequestApiAuthorization[] = "api_authorization"; | 36 const char kValueRequestApiAuthorization[] = "api_authorization"; |
| 37 const char kValueRequestUnregister[] = "unregister"; | 37 const char kValueRequestUnregister[] = "unregister"; |
| 38 const char kValueRequestUploadCertificate[] = "cert_upload"; | 38 const char kValueRequestUploadCertificate[] = "cert_upload"; |
| 39 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval"; | 39 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval"; |
| 40 const char kValueRequestRemoteCommands[] = "remote_commands"; |
| 40 const char kValueUserAffiliationManaged[] = "managed"; | 41 const char kValueUserAffiliationManaged[] = "managed"; |
| 41 const char kValueUserAffiliationNone[] = "none"; | 42 const char kValueUserAffiliationNone[] = "none"; |
| 42 | 43 |
| 43 const char kChromeDevicePolicyType[] = "google/chromeos/device"; | 44 const char kChromeDevicePolicyType[] = "google/chromeos/device"; |
| 44 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
| 45 const char kChromeUserPolicyType[] = "google/chromeos/user"; | 46 const char kChromeUserPolicyType[] = "google/chromeos/user"; |
| 46 #elif defined(OS_ANDROID) | 47 #elif defined(OS_ANDROID) |
| 47 const char kChromeUserPolicyType[] = "google/android/user"; | 48 const char kChromeUserPolicyType[] = "google/android/user"; |
| 48 #elif defined(OS_IOS) | 49 #elif defined(OS_IOS) |
| 49 const char kChromeUserPolicyType[] = "google/ios/user"; | 50 const char kChromeUserPolicyType[] = "google/ios/user"; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 NOTREACHED(); | 140 NOTREACHED(); |
| 140 return MANAGEMENT_MODE_LOCAL_OWNER; | 141 return MANAGEMENT_MODE_LOCAL_OWNER; |
| 141 } | 142 } |
| 142 } | 143 } |
| 143 | 144 |
| 144 return policy_data.has_request_token() ? | 145 return policy_data.has_request_token() ? |
| 145 MANAGEMENT_MODE_ENTERPRISE_MANAGED : MANAGEMENT_MODE_LOCAL_OWNER; | 146 MANAGEMENT_MODE_ENTERPRISE_MANAGED : MANAGEMENT_MODE_LOCAL_OWNER; |
| 146 } | 147 } |
| 147 | 148 |
| 148 } // namespace policy | 149 } // namespace policy |
| OLD | NEW |