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

Side by Side Diff: components/policy/core/common/policy_switches.cc

Issue 189913016: Turn on policy key verification by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/policy/core/common/policy_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 at which to fetch configuration policy from the device
17 // management backend. Specifying this switch turns on managed policy from the 17 // management backend. Specifying this switch turns on managed policy from the
18 // device management backend. 18 // device management backend.
19 const char kDeviceManagementUrl[] = "device-management-url"; 19 const char kDeviceManagementUrl[] = "device-management-url";
20 20
21 // Disables pushing cloud policy to Chrome using an invalidation service. 21 // Disables pushing cloud policy to Chrome using an invalidation service.
22 const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push"; 22 const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push";
23 23
24 // Enables fetching and storing cloud policy for components. 24 // Enables fetching and storing cloud policy for components.
25 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy"; 25 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy";
26 26
27 // Enables the verification of policy signing keys. 27 // Disables the verification of policy signing keys.
28 const char kEnablePolicyKeyVerification[] = "enable-policy-key-verification"; 28 // TODO(atwilson): Remove this once all test servers have been updated to
29 // produce verification signatures.
30 const char kDisablePolicyKeyVerification[] = "disable-policy-key-verification";
29 31
30 #if defined(OS_ANDROID) || defined(OS_IOS) 32 #if defined(OS_ANDROID) || defined(OS_IOS)
31 // Registers for cloud policy using the BROWSER client type instead of the 33 // Registers for cloud policy using the BROWSER client type instead of the
32 // ANDROID_BROWSER or IOS_BROWSER types. 34 // ANDROID_BROWSER or IOS_BROWSER types.
33 // This allows skipping the server whitelist. 35 // This allows skipping the server whitelist.
34 // TODO(joaodasilva): remove this. http://crbug.com/248527 36 // TODO(joaodasilva): remove this. http://crbug.com/248527
35 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; 37 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type";
36 #endif // defined(OS_ANDROID) || defined(OS_IOS) 38 #endif // defined(OS_ANDROID) || defined(OS_IOS)
37 39
38 } // namespace switches 40 } // namespace switches
39 } // namespace policy 41 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/policy_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698