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

Side by Side Diff: components/policy/resources/policy_templates.json

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Some oups.... :-) Created 3 years, 6 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
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 # templates and documentation. The policy definition list that Chrome sees 136 # templates and documentation. The policy definition list that Chrome sees
137 # will include policies marked with 'future'. If a WIP policy isn't meant to 137 # will include policies marked with 'future'. If a WIP policy isn't meant to
138 # be seen by the policy providers either, the 'supported_on' key should be set 138 # be seen by the policy providers either, the 'supported_on' key should be set
139 # to an empty list. 139 # to an empty list.
140 # 140 #
141 # IDs: 141 # IDs:
142 # Since a Protocol Buffer definition is generated from this file, unique and 142 # Since a Protocol Buffer definition is generated from this file, unique and
143 # persistent IDs for all fields (but not for groups!) are needed. These are 143 # persistent IDs for all fields (but not for groups!) are needed. These are
144 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 144 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
145 # because doing so would break the deployed wire format! 145 # because doing so would break the deployed wire format!
146 # For your editing convenience: highest ID currently used: 370 146 # For your editing convenience: highest ID currently used: 371
147 # And don't forget to also update the EnterprisePolicies enum of 147 # And don't forget to also update the EnterprisePolicies enum of
148 # histograms.xml (run 'python tools/metrics/histograms/update_policies.py'). 148 # histograms.xml (run 'python tools/metrics/histograms/update_policies.py').
149 # 149 #
150 # Placeholders: 150 # Placeholders:
151 # The following placeholder strings are automatically substituted: 151 # The following placeholder strings are automatically substituted:
152 # $1 -> Google Chrome / Chromium 152 # $1 -> Google Chrome / Chromium
153 # $2 -> Google Chrome OS / Chromium OS 153 # $2 -> Google Chrome OS / Chromium OS
154 # $3 -> Google Chrome Frame / Chromium Frame 154 # $3 -> Google Chrome Frame / Chromium Frame
155 # $6 is reserved for doc_writer 155 # $6 is reserved for doc_writer
156 # 156 #
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 'desc': '''Configures the cache size that <ph name="PRODUCT_NAME">$1<ex>Go ogle Chrome</ex></ph> will use for storing cached media files on the disk. 1705 'desc': '''Configures the cache size that <ph name="PRODUCT_NAME">$1<ex>Go ogle Chrome</ex></ph> will use for storing cached media files on the disk.
1706 1706
1707 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided cache size regardless whether the user has specified t he '--media-cache-size' flag or not. The value specified in this policy is not a hard boundary but rather a suggestion to the caching system, any value below a few megabytes is too small and will be rounded up to a sane minimum. 1707 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will use the provided cache size regardless whether the user has specified t he '--media-cache-size' flag or not. The value specified in this policy is not a hard boundary but rather a suggestion to the caching system, any value below a few megabytes is too small and will be rounded up to a sane minimum.
1708 1708
1709 If the value of this policy is 0, the default cache size will be used but the user will not be able to change it. 1709 If the value of this policy is 0, the default cache size will be used but the user will not be able to change it.
1710 1710
1711 If this policy is not set the default size will be used and the user will be able to override it with the --media-cache-size flag.''', 1711 If this policy is not set the default size will be used and the user will be able to override it with the --media-cache-size flag.''',
1712 'label': '''Set media disk cache size''', 1712 'label': '''Set media disk cache size''',
1713 }, 1713 },
1714 { 1714 {
1715 'name': 'DownloadRestrictions',
1716 'type': 'int-enum',
1717 'schema': {
1718 'type': 'integer',
1719 'enum': [ 0, 1, 2, 3 ],
1720 },
1721 'items': [
1722 {
1723 'name': 'DefaultDownloadSecurity',
1724 'value': 0,
1725 'caption': '''No special restrictions''',
1726 },
1727 {
1728 'name': 'BlockDangerousDownloads',
1729 'value': 1,
1730 'caption': '''Block dangerous downloads''',
1731 },
1732 {
1733 'name': 'BlockPotentiallyDangerousDownloads',
1734 'value': 2,
1735 'caption': '''Block potentially dangerous downloads''',
1736 },
1737 {
1738 'name': 'BlockAllDownloads',
1739 'value': 3,
1740 'caption': '''Block all downloads''',
1741 },
1742 ],
1743 'supported_on': ['chrome.*:61-', 'chrome_os:61-'],
1744 'features': {
1745 'can_be_recommended': True,
1746 'dynamic_refresh': True,
1747 'per_profile': True,
1748 },
1749 'example_value': 2,
1750 'id': 371,
1751 'caption': '''Allow download restrictions''',
1752 'tags': ['local-data-access'],
1753 'desc': '''Configures the type of downloads that <ph name="PRODUCT_NAME">$ 1<ex>Google Chrome</ex></ph> will completely block, without letting users overri de the security decision.
1754
1755 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will prevent certain types of downloads, and won't let user bypass the secur ity warnings.
1756
1757 When the 'Block dangerous downloads' option is chosen, all downloads are a llowed, except for those that carry SafeBrowsing warnings.
1758
1759 When the 'Block potentially dangerous downloads' option is chosen, all dow nloads allowed, except for those that carry SafeBrowsing warnings of potentially dangerous downloads.
1760
1761 When the 'Block all downloads' option is chosen, all downloads are blocked .
1762
1763 When this policy is not set, (or the 'No special restrictions' option is c hosen), the dowloads will go through the usual security restrictions based on Sa feBrowsing analysis results.
1764
1765 Note that these restrictions apply to downloads triggered from web page co ntent, as well as the 'download link...' context menu option.
1766
1767 These restrictions do not apply to the save / download of the currently di splayed page, nor does it apply to saving as PDF from the printing options.
1768
1769 See https://developers.google.com/safe-browsing for more info on SafeBrow sing.''',
1770 'label': '''Download restrictions''',
1771 },
1772 {
1715 'name': 'DownloadDirectory', 1773 'name': 'DownloadDirectory',
1716 'type': 'string', 1774 'type': 'string',
1717 'schema': { 'type': 'string' }, 1775 'schema': { 'type': 'string' },
1718 'supported_on': ['chrome.*:11-', 'chrome_os:35-'], 1776 'supported_on': ['chrome.*:11-', 'chrome_os:35-'],
1719 'features': { 1777 'features': {
1720 'can_be_recommended': True, 1778 'can_be_recommended': True,
1721 'dynamic_refresh': True, 1779 'dynamic_refresh': True,
1722 'per_profile': True, 1780 'per_profile': True,
1723 }, 1781 },
1724 'example_value': '/home/${user_name}/Downloads', 1782 'example_value': '/home/${user_name}/Downloads',
(...skipping 7969 matching lines...) Expand 10 before | Expand all | Expand 10 after
9694 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 9752 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
9695 'text': 'Default Settings (users can override)', 9753 'text': 'Default Settings (users can override)',
9696 }, 9754 },
9697 'doc_complex_policies_on_windows': { 9755 'doc_complex_policies_on_windows': {
9698 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 9756 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
9699 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '', 9757 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '',
9700 }, 9758 },
9701 }, 9759 },
9702 'placeholders': [], 9760 'placeholders': [],
9703 } 9761 }
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698