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

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

Issue 6176005: Support int-typed policies in policy template generator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 9 years, 11 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 | « no previous file | tools/grit/grit/format/policy_templates/writers/adm_writer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 # pair where the value has a given type. Chrome looks up the values using the 11 # pair where the value has a given type. Chrome looks up the values using the
12 # names of the policies. In the user interface where the values can be set, 12 # names of the policies. In the user interface where the values can be set,
13 # related policies might appear together in policy groups. The grouping is not 13 # related policies might appear together in policy groups. The grouping is not
14 # visible to Chrome. 14 # visible to Chrome.
15 # 15 #
16 # This file contains a list of policies and groups. Each group contains a list 16 # This file contains a list of policies and groups. Each group contains a list
17 # of policies under the key 'policies'. All the policies and groups must have 17 # of policies under the key 'policies'. All the policies and groups must have
18 # unique names. Group names are not exposed to Chrome at all. 18 # unique names. Group names are not exposed to Chrome at all.
19 # 19 #
20 # Each policy has a type. The currently implemented types: 20 # Each policy has a type. The currently implemented types:
21 # 'group': - not a real policy, contains a list of policies 21 # 'group': - not a real policy, contains a list of policies
22 # NOTE: Currently nesting groups inside other groups is not supported. 22 # NOTE: Currently nesting groups inside other groups is not supported.
23 # 'string' - a string value 23 # 'string' - a string value
24 # 'int' - an integer value
24 # 'int-enum' - the user can select an integer value from a collection of 25 # 'int-enum' - the user can select an integer value from a collection of
25 # items 26 # items
26 # 'string-enum' - the user can select a string value from a collection of 27 # 'string-enum' - the user can select a string value from a collection of
27 # items 28 # items
28 # 'main' - a boolean value 29 # 'main' - a boolean value
29 # 'list' - a list of string values 30 # 'list' - a list of string values
30 # 31 #
31 # Policy group descriptions, policy captions and similar texts are localized 32 # Policy group descriptions, policy captions and similar texts are localized
32 # strings taken from the <message> nodes of the .grd file. Their name 33 # strings taken from the <message> nodes of the .grd file. Their name
33 # attributes are generated from the JSON keys. 34 # attributes are generated from the JSON keys.
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 { 698 {
698 'key': '$4', 699 'key': '$4',
699 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started' 700 'value': 'http://www.chromium.org/developers/how-tos/chrome-frame-getting- started'
700 }, 701 },
701 { 702 {
702 'key': '$5', 703 'key': '$5',
703 'value': 'http://www.chromium.org/administrators/policy-templates' 704 'value': 'http://www.chromium.org/administrators/policy-templates'
704 }, 705 },
705 ] 706 ]
706 } 707 }
OLDNEW
« no previous file with comments | « no previous file | tools/grit/grit/format/policy_templates/writers/adm_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698