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

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

Issue 88423002: Add CloudExternalDataPolicyObserverChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fix. Created 7 years 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 13 matching lines...) Expand all
24 # 'int' - an integer value 24 # 'int' - an integer value
25 # '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
26 # items 26 # items
27 # '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
28 # items 28 # items
29 # 'main' - a boolean value 29 # 'main' - a boolean value
30 # 'list' - a list of string values 30 # 'list' - a list of string values
31 # 'dict' - a dictionary value, containing other values indexed by strings 31 # 'dict' - a dictionary value, containing other values indexed by strings
32 # NOTE: This type is not supported yet. http://crbug.com/108992 32 # NOTE: This type is not supported yet. http://crbug.com/108992
33 # 'external' - a policy that references external data. 33 # 'external' - a policy that references external data.
34 # NOTE: This type is not supported yet. http://crbug.com/256635
35 # 34 #
36 # Policy group descriptions, policy captions and similar texts are localized 35 # Policy group descriptions, policy captions and similar texts are localized
37 # strings taken from the <message> nodes of the .grd file. Their name 36 # strings taken from the <message> nodes of the .grd file. Their name
38 # attributes are generated from the JSON keys. 37 # attributes are generated from the JSON keys.
39 # Each item (policy or group) may have the following messages: 38 # Each item (policy or group) may have the following messages:
40 # - description: 39 # - description:
41 # Describes the item it applies to. 40 # Describes the item it applies to.
42 # - caption 41 # - caption
43 # A short, one-line summary of the item it applies to. This can appear 42 # A short, one-line summary of the item it applies to. This can appear
44 # both in policy or group listings or on title bars of policy-setting 43 # both in policy or group listings or on title bars of policy-setting
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 # templates and documentation. The policy definition list that Chrome sees 110 # templates and documentation. The policy definition list that Chrome sees
112 # will include policies marked with 'future'. If a WIP policy isn't meant to 111 # will include policies marked with 'future'. If a WIP policy isn't meant to
113 # be seen by the policy providers either, the 'supported_on' key should be set 112 # be seen by the policy providers either, the 'supported_on' key should be set
114 # to an empty list. 113 # to an empty list.
115 # 114 #
116 # IDs: 115 # IDs:
117 # Since a Protocol Buffer definition is generated from this file, unique and 116 # Since a Protocol Buffer definition is generated from this file, unique and
118 # persistent IDs for all fields (but not for groups!) are needed. These are 117 # persistent IDs for all fields (but not for groups!) are needed. These are
119 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 118 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
120 # because doing so would break the deployed wire format! 119 # because doing so would break the deployed wire format!
121 # For your editing convenience: highest ID currently used: 248 120 # For your editing convenience: highest ID currently used: 249
122 # 121 #
123 # Placeholders: 122 # Placeholders:
124 # The following placeholder strings are automatically substituted: 123 # The following placeholder strings are automatically substituted:
125 # $1 -> Google Chrome / Chromium 124 # $1 -> Google Chrome / Chromium
126 # $2 -> Google Chrome OS / Chromium OS 125 # $2 -> Google Chrome OS / Chromium OS
127 # $3 -> Google Chrome Frame / Chromium Frame 126 # $3 -> Google Chrome Frame / Chromium Frame
128 # $6 is reserved for doc_writer 127 # $6 is reserved for doc_writer
129 # 128 #
130 # Device Policy: 129 # Device Policy:
131 # An additional flag device_only (optional, defaults to False) indicates 130 # An additional flag device_only (optional, defaults to False) indicates
(...skipping 5588 matching lines...) Expand 10 before | Expand all | Expand 10 after
5720 }, 5719 },
5721 'example_value': True, 5720 'example_value': True,
5722 'id': 241, 5721 'id': 241,
5723 'caption': '''Enable the data compression proxy feature''', 5722 'caption': '''Enable the data compression proxy feature''',
5724 'desc': '''Enable or disable the data compression proxy and prevents users from changing this setting. 5723 'desc': '''Enable or disable the data compression proxy and prevents users from changing this setting.
5725 5724
5726 If you enable or disable this setting, users cannot change or override thi s setting. 5725 If you enable or disable this setting, users cannot change or override thi s setting.
5727 5726
5728 If this policy is left not set, the data compression proxy feature will be available for the user to choose whether to use it or not.''', 5727 If this policy is left not set, the data compression proxy feature will be available for the user to choose whether to use it or not.''',
5729 }, 5728 },
5729 {
5730 'name': 'Avatar',
Joao da Silva 2013/11/27 14:33:59 I find the name a bit too generic, maybe 'UserAvat
bartfab (slow) 2013/11/27 20:10:15 Done.
5731 'type': 'external',
Joao da Silva 2013/11/27 14:33:59 You'll probably have to update & roll grit to supp
bartfab (slow) 2013/11/27 20:10:15 Done: https://codereview.chromium.org/92213002
5732 'schema': {
5733 'type': 'object',
5734 'properties': {
5735 'url': { "type": "string" },
5736 'hash': { "type": "string" }
5737 },
5738 },
5739 'supported_on': ['chrome_os:33-'],
5740 'features': {
5741 'dynamic_refresh': True,
5742 'per_profile': True,
5743 },
5744 'example_value': { "url": "http://example.com/avatar.jpg", "hash": "deadbe efdeadbeefdeadbeefdeadbeef" },
5745 'max_size': 524288,
5746 'id': 249,
5747 'caption': '''Avatar image''',
5748 'desc': '''Configure avatar image.
5749
5750 This policy allows you to configure the avatar image representing the user on the login screen. The policy is set by specifying the URL from which <ph nam e="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> can download the avatar ima ge and a cryptographic hash used to verify the integrity of the download. The im age must be in JPEG format, its size must not exceed 512kB. The URL must be acce ssible without any authentication.
Joao da Silva 2013/11/27 14:33:59 The hash is also used to determine if the picture
bartfab (slow) 2013/11/27 20:10:15 Done.
5751
5752 The policy should be specified as a string that expresses the URL and hash in JSON format, conforming to the following schema:
5753 {
5754 "type": "object",
5755 "properties": {
5756 "url": {
5757 "description": "The URL from which the avatar image can be downloade d.",
5758 "type": "string",
Joao da Silva 2013/11/27 14:33:59 JSON doesn't allow trailing commas
bartfab (slow) 2013/11/27 20:10:15 Trailing comma is best comma.
5759 },
5760 "hash": {
5761 "description": "The SHA-1 hash of the avatar image.",
5762 "type": "string",
5763 }
5764 }
5765 }
5766
5767 If this policy is set, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ ex></ph> will download and use the avatar image.
5768
5769 If you set this policy, users cannot change or override it.
5770
5771 If the policy is left not set, the user can choose the avatar image repres enting him/her on the login screen.''',
5772 },
5730 ], 5773 ],
5731 'messages': { 5774 'messages': {
5732 # Messages that are not associated to any policies. 5775 # Messages that are not associated to any policies.
5733 'win_supported_winxpsp2': { 5776 'win_supported_winxpsp2': {
5734 'desc': '''A label specifying the oldest possible compatible version of Wi ndows. This text will appear right next to a label containing the text 'Supporte d on:'.''', 5777 'desc': '''A label specifying the oldest possible compatible version of Wi ndows. This text will appear right next to a label containing the text 'Supporte d on:'.''',
5735 'text': '''Microsoft Windows XP SP2 or later''' 5778 'text': '''Microsoft Windows XP SP2 or later'''
5736 }, 5779 },
5737 'mac_chrome_preferences': { 5780 'mac_chrome_preferences': {
5738 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chrome are being edited''', 5781 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chrome are being edited''',
5739 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 5782 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es'''
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
5824 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 5867 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
5825 'text': 'deprecated', 5868 'text': 'deprecated',
5826 }, 5869 },
5827 'doc_recommended': { 5870 'doc_recommended': {
5828 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 5871 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
5829 'text': 'Default Settings (users can override)', 5872 'text': 'Default Settings (users can override)',
5830 }, 5873 },
5831 }, 5874 },
5832 'placeholders': [], 5875 'placeholders': [],
5833 } 5876 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698