OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/policy_switches.h" | 5 #include "components/policy/core/common/policy_switches.h" |
6 | 6 |
7 namespace policy { | 7 namespace policy { |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // The maximum amount of delay in ms between receiving a cloud policy | 10 // The maximum amount of delay in ms between receiving a cloud policy |
11 // invalidation and fetching the policy. A random delay up to this value is used | 11 // invalidation and fetching the policy. A random delay up to this value is used |
12 // to prevent Chrome clients from overwhelming the cloud policy server when a | 12 // to prevent Chrome clients from overwhelming the cloud policy server when a |
13 // policy which affects many users is changed. | 13 // policy which affects many users is changed. |
14 const char kCloudPolicyInvalidationDelay[] = "cloud-policy-invalidation-delay"; | 14 const char kCloudPolicyInvalidationDelay[] = "cloud-policy-invalidation-delay"; |
15 | 15 |
16 // Specifies the URL at which to fetch configuration policy from the device | 16 // Specifies the URL of the consumer device management backend. |
17 // management backend. Specifying this switch turns on managed policy from the | 17 const char kConsumerDeviceManagementUrl[] = "consumer-device-management-url"; |
18 // device management backend. | 18 |
| 19 // Specifies the URL of the enterprise device management backend. |
19 const char kDeviceManagementUrl[] = "device-management-url"; | 20 const char kDeviceManagementUrl[] = "device-management-url"; |
20 | 21 |
21 // Enables fetching and storing cloud policy for components. | 22 // Enables fetching and storing cloud policy for components. |
22 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy"; | 23 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy"; |
23 | 24 |
24 // Disables the verification of policy signing keys. | 25 // Disables the verification of policy signing keys. |
25 // TODO(atwilson): Remove this once all test servers have been updated to | 26 // TODO(atwilson): Remove this once all test servers have been updated to |
26 // produce verification signatures. | 27 // produce verification signatures. |
27 const char kDisablePolicyKeyVerification[] = "disable-policy-key-verification"; | 28 const char kDisablePolicyKeyVerification[] = "disable-policy-key-verification"; |
28 | 29 |
29 #if defined(OS_ANDROID) || defined(OS_IOS) | 30 #if defined(OS_ANDROID) || defined(OS_IOS) |
30 // Registers for cloud policy using the BROWSER client type instead of the | 31 // Registers for cloud policy using the BROWSER client type instead of the |
31 // ANDROID_BROWSER or IOS_BROWSER types. | 32 // ANDROID_BROWSER or IOS_BROWSER types. |
32 // This allows skipping the server whitelist. | 33 // This allows skipping the server whitelist. |
33 // TODO(joaodasilva): remove this. http://crbug.com/248527 | 34 // TODO(joaodasilva): remove this. http://crbug.com/248527 |
34 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; | 35 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; |
35 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 36 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
36 | 37 |
37 } // namespace switches | 38 } // namespace switches |
38 } // namespace policy | 39 } // namespace policy |
OLD | NEW |