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

Side by Side Diff: chrome/app/policy/policy_templates.json

Issue 8258018: Generate Chrome policy definition list from policy_templates.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the unittest fix Created 9 years, 2 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
OLDNEW
1 { 1 {
2 # policy_templates.json - Metafile for policy templates 2 # policy_templates.json - Metafile for policy templates
3 # 3 #
4 # The content of this file is evaluated as a Python expression. 4 # The content of this file is evaluated as a Python expression.
5 # 5 #
6 # This file is used as input to generate the following policy templates: 6 # This file is used as input to generate the following policy templates:
7 # ADM, ADMX+ADML, MCX/plist and html documentation. 7 # ADM, ADMX+ADML, MCX/plist and html documentation.
8 # 8 #
9 # Policy templates are user interface definitions or documents about the 9 # Policy templates are user interface definitions or documents about the
10 # policies that can be used to configure Chrome. Each policy is a name-value 10 # policies that can be used to configure Chrome. Each policy is a name-value
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 # 62 #
63 # Products and versions: 63 # Products and versions:
64 # Each policy has the list of products and version numbers where it is 64 # Each policy has the list of products and version numbers where it is
65 # supported under the key 'supported_on'. Each item of this list has the 65 # supported under the key 'supported_on'. Each item of this list has the
66 # form of 'product:since_version-until_version', which means that support 66 # form of 'product:since_version-until_version', which means that support
67 # for the policy in 'product' was introduced in 'since_version' and removed 67 # for the policy in 'product' was introduced in 'since_version' and removed
68 # after 'until_version'. Product names may contain a suffix specifying a 68 # after 'until_version'. Product names may contain a suffix specifying a
69 # platform name, e.g.: 'chrome.win' is read as 'Chrome on Windows'. Version 69 # platform name, e.g.: 'chrome.win' is read as 'Chrome on Windows'. Version
70 # numbers can be any string that does not contain ':' or '-' characters. 70 # numbers can be any string that does not contain ':' or '-' characters.
71 # 71 #
72 # Currently supported product names: 72 # Currently supported product names:
73 # 'chrome_frame', 'chrome_os' 73 # 'chrome_frame', 'chrome_os'
74 # 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.*' 74 # 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.*'
75 # For example if 'chrome.*:5-10' is specified for a policy, then it should 75 # For example if 'chrome.*:5-10' is specified for a policy, then it should
76 # be read as: 76 # be read as:
77 # 'chrome.linux:5-10', 'chrome.mac:5-10', 'chrome.win:5-10' 77 # 'chrome.linux:5-10', 'chrome.mac:5-10', 'chrome.win:5-10'
78 # The product name also affects in which templates will the policy be included . 78 #
79 # chrome.*, chrome.win, chrome_frame -> ADM,ADMX,ADML,doc 79 # The product name also affects in which templates the policy is included:
80 # chrome.*, chrome.linux -> JSON,doc 80 # chrome.*, chrome.win, chrome_frame -> ADM, ADMX, ADML, doc
81 # chrome.*, chrome.mac -> plist, plist_strings,doc 81 # chrome.*, chrome.linux -> JSON, doc
82 # chrome.*, chrome.mac -> plist, plist_strings, doc
82 # everything else -> doc 83 # everything else -> doc
83 # 84 #
85 # The default list of policies supported by Chrome is also generated based
86 # on the product names:
87 # chrome.* -> Chrome policy definition list
88 # chrome_os -> Chrome policy definition list, when building OS_CHROMEOS
89 #
84 # Annotations: 90 # Annotations:
85 # Additional information is specified under keys 'features' and 91 # Additional information is specified under keys 'features' and
86 # 'example_value'. These are used in the generated documentation and example 92 # 'example_value'. These are used in the generated documentation and example
87 # policy configuration files. 'dynamic_refresh' controls if the generated 93 # policy configuration files. 'dynamic_refresh' controls if the generated
88 # documentation should state that the policy supports dynamic refresh or not. 94 # documentation should state that the policy supports dynamic refresh or not.
89 # Supporting dynamic refresh means that Chrome respects the changes to the 95 # Supporting dynamic refresh means that Chrome respects the changes to the
90 # policy immediately, without the need for restart. 96 # policy immediately, without the need for restart.
91 # 97 #
92 # IDs: 98 # IDs:
93 # Since a Protocol Buffer definition is generated from this file, unique and 99 # Since a Protocol Buffer definition is generated from this file, unique and
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 'caption': '''Enable printing''', 383 'caption': '''Enable printing''',
378 'desc': '''Enables printing in <ph name="PRODUCT_NAME">$1<ex>Google Chrome </ex></ph> and prevents users from changing this setting. 384 'desc': '''Enables printing in <ph name="PRODUCT_NAME">$1<ex>Google Chrome </ex></ph> and prevents users from changing this setting.
379 385
380 If this setting is enabled or not configured, users can print. 386 If this setting is enabled or not configured, users can print.
381 387
382 If this setting is disabled, users cannot print from <ph name="PRODUCT_NAM E">$1<ex>Google Chrome</ex></ph>. Printing is disabled in the wrench menu, exten sions, JavaScript applications, etc. It is still possible to print from plugins that bypass <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> while printing . For example certain Flash applications has the print option in their context m enu, and that will not be disabled.''', 388 If this setting is disabled, users cannot print from <ph name="PRODUCT_NAM E">$1<ex>Google Chrome</ex></ph>. Printing is disabled in the wrench menu, exten sions, JavaScript applications, etc. It is still possible to print from plugins that bypass <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> while printing . For example certain Flash applications has the print option in their context m enu, and that will not be disabled.''',
383 }, 389 },
384 { 390 {
385 'name': 'CloudPrintProxyEnabled', 391 'name': 'CloudPrintProxyEnabled',
386 'type': 'main', 392 'type': 'main',
387 'supported_on': [], 393 'supported_on': ['chrome.*:X-'],
388 'features': {'dynamic_refresh': 1}, 394 'features': {'dynamic_refresh': 1},
389 'future': True, 395 'future': True,
390 'example_value': True, 396 'example_value': True,
391 'id': 13, 397 'id': 13,
392 'caption': '''Enable <ph name="CLOUD_PRINT_NAME">Google Cloud Print</ph> p roxy''', 398 'caption': '''Enable <ph name="CLOUD_PRINT_NAME">Google Cloud Print</ph> p roxy''',
393 'desc': ''' Enables <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex>< /ph> to act as a proxy between <ph name="CLOUD_PRINT_NAME">Google Cloud Print</p h> and legacy printers connected to the machine. 399 'desc': ''' Enables <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex>< /ph> to act as a proxy between <ph name="CLOUD_PRINT_NAME">Google Cloud Print</p h> and legacy printers connected to the machine.
394 400
395 If this setting is enabled or not configured, users can enable the cloud p rint proxy by authentication with their Google account. 401 If this setting is enabled or not configured, users can enable the cloud p rint proxy by authentication with their Google account.
396 402
397 If this setting is disabled, users cannot enable the proxy, and the machin e will not be allowed to share it's printers with <ph name="CLOUD_PRINT_NAME">Go ogle Cloud Print</ph>.''', 403 If this setting is disabled, users cannot enable the proxy, and the machin e will not be allowed to share it's printers with <ph name="CLOUD_PRINT_NAME">Go ogle Cloud Print</ph>.''',
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1921 'desc': '''The name of the feature that indicates for a given policy that changes to it are respected by Chrome without a browser restart''', 1927 'desc': '''The name of the feature that indicates for a given policy that changes to it are respected by Chrome without a browser restart''',
1922 'text': '''Dynamic Policy Refresh''' 1928 'text': '''Dynamic Policy Refresh'''
1923 }, 1929 },
1924 'doc_deprecated': { 1930 'doc_deprecated': {
1925 'desc': '''Text appended in parentheses to the policy name to indicate t h at it has been deprecated''', 1931 'desc': '''Text appended in parentheses to the policy name to indicate t h at it has been deprecated''',
1926 'text': 'deprecated', 1932 'text': 'deprecated',
1927 } 1933 }
1928 }, 1934 },
1929 'placeholders': [], 1935 'placeholders': [],
1930 } 1936 }
OLDNEW
« no previous file with comments | « chrome/app/policy/cloud_policy_codegen.gyp ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698