Index: components/policy/core/common/policy_switches.cc |
diff --git a/components/policy/core/common/policy_switches.cc b/components/policy/core/common/policy_switches.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..343bdef45a5d2b1a8480f90b2ae36d4b4c7dc903 |
--- /dev/null |
+++ b/components/policy/core/common/policy_switches.cc |
@@ -0,0 +1,32 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/policy/core/common/policy_switches.h" |
+ |
+namespace policy { |
+namespace switches { |
+ |
+// The maximum amount of delay in ms between receiving a cloud policy |
+// invalidation and fetching the policy. A random delay up to this value is used |
+// to prevent Chrome clients from overwhelming the cloud policy server when a |
+// policy which affects many users is changed. |
+const char kCloudPolicyInvalidationDelay[] = "cloud-policy-invalidation-delay"; |
+ |
+// If present, disables the loading and application of cloud policy for |
+// signed-in users. |
+const char kDisableCloudPolicyOnSignin[] = "disable-cloud-policy-on-signin"; |
+ |
+// Disables pushing cloud policy to Chrome using an invalidation service. |
+const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push"; |
+ |
+#if defined(OS_ANDROID) || defined(OS_IOS) |
+// Registers for cloud policy using the BROWSER client type instead of the |
+// ANDROID_BROWSER or IOS_BROWSER types. |
+// This allows skipping the server whitelist. |
+// TODO(joaodasilva): remove this. http://crbug.com/248527 |
+const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; |
+#endif // defined(OS_ANDROID) || defined(OS_IOS) |
+ |
+} // namespace switches |
+} // namespace policy |