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

Unified Diff: components/policy/tools/syntax_check_policy_template_json.py

Issue 2278493004: Document ARC support for Chrome policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/tools/syntax_check_policy_template_json.py
diff --git a/components/policy/tools/syntax_check_policy_template_json.py b/components/policy/tools/syntax_check_policy_template_json.py
index fd0cedd748d457421900352d7b8d40308b3c20c5..4da3ca3d2796ed3b85bf1d4af0aa530304c91326 100755
--- a/components/policy/tools/syntax_check_policy_template_json.py
+++ b/components/policy/tools/syntax_check_policy_template_json.py
@@ -185,7 +185,7 @@ class PolicyTemplateChecker(object):
'supported_on', 'label', 'policies', 'items',
'example_value', 'features', 'deprecated', 'future',
'id', 'schema', 'max_size', 'tags',
- 'default_for_enterprise_users'):
+ 'default_for_enterprise_users', 'arc_support'):
self.warning_count += 1
print ('In policy %s: Warning: Unknown key: %s' %
(policy.get('name'), key))
@@ -217,6 +217,9 @@ class PolicyTemplateChecker(object):
# If 'future' is present, it must be a bool.
self._CheckContains(policy, 'future', bool, True)
+ # If 'arc_support' is present, it must be a string.
+ self._CheckContains(policy, 'arc_support', str, True)
+
if policy_type == 'group':
# Groups must not be nested.
if is_in_group:

Powered by Google App Engine
This is Rietveld 408576698