policy_switches.cc revision 23730a6e56a168d1879203e4b3819bb36e3d8f1f
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 3// found in the LICENSE file. 4 5#include "components/policy/core/common/policy_switches.h" 6 7namespace policy { 8namespace switches { 9 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 12// to prevent Chrome clients from overwhelming the cloud policy server when a 13// policy which affects many users is changed. 14const char kCloudPolicyInvalidationDelay[] = "cloud-policy-invalidation-delay"; 15 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 18// device management backend. 19const char kDeviceManagementUrl[] = "device-management-url"; 20 21// Disables pushing cloud policy to Chrome using an invalidation service. 22const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push"; 23 24// Enables fetching and storing cloud policy for components. 25const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy"; 26 27// Disables the verification of policy signing keys. 28// TODO(atwilson): Remove this once all test servers have been updated to 29// produce verification signatures. 30const char kDisablePolicyKeyVerification[] = "disable-policy-key-verification"; 31 32#if defined(OS_ANDROID) || defined(OS_IOS) 33// Registers for cloud policy using the BROWSER client type instead of the 34// ANDROID_BROWSER or IOS_BROWSER types. 35// This allows skipping the server whitelist. 36// TODO(joaodasilva): remove this. http://crbug.com/248527 37const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; 38#endif // defined(OS_ANDROID) || defined(OS_IOS) 39 40} // namespace switches 41} // namespace policy 42