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 // Disables pushing cloud policy to Chrome using an invalidation service. | 16 // Disables pushing cloud policy to Chrome using an invalidation service. |
17 const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push"; | 17 const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push"; |
18 | 18 |
| 19 // Enables fetching and storing cloud policy for components. This currently |
| 20 // supports policy for extensions on Chrome OS. |
| 21 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy"; |
| 22 |
19 #if defined(OS_ANDROID) || defined(OS_IOS) | 23 #if defined(OS_ANDROID) || defined(OS_IOS) |
20 // Registers for cloud policy using the BROWSER client type instead of the | 24 // Registers for cloud policy using the BROWSER client type instead of the |
21 // ANDROID_BROWSER or IOS_BROWSER types. | 25 // ANDROID_BROWSER or IOS_BROWSER types. |
22 // This allows skipping the server whitelist. | 26 // This allows skipping the server whitelist. |
23 // TODO(joaodasilva): remove this. http://crbug.com/248527 | 27 // TODO(joaodasilva): remove this. http://crbug.com/248527 |
24 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; | 28 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; |
25 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 29 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
26 | 30 |
27 } // namespace switches | 31 } // namespace switches |
28 } // namespace policy | 32 } // namespace policy |
OLD | NEW |