Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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': 'AllowDownloads', | |
| 1724 'value': 0, | |
| 1725 'caption': '''No restrictions''', | |
| 1726 }, | |
| 1727 { | |
| 1728 'name': 'DisableBlockedFiles', | |
| 1729 'value': 1, | |
| 1730 'caption': '''Disable blocked files''', | |
| 1731 }, | |
| 1732 { | |
| 1733 'name': 'DisableBlockedAndDangerousFiles', | |
| 1734 'value': 2, | |
| 1735 'caption': '''Disable blocked and dangerous files''', | |
| 1736 }, | |
| 1737 { | |
| 1738 'name': 'DisableDownloads', | |
| 1739 'value': 3, | |
| 1740 'caption': '''No downloads allowed''', | |
| 1741 }, | |
| 1742 ], | |
|
asanka
2017/06/06 03:00:36
The policy value names and their descriptions shou
MAD
2017/06/06 18:00:28
OK, I'll check with UX and Chrome Enterprise PM fo
| |
| 1743 'supported_on': ['chrome.*:58-', 'chrome_os:58-'], | |
| 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 allow. | |
| 1754 | |
| 1755 If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ ph> will prevent certain types of downloads. | |
| 1756 | |
| 1757 When the 'Disabled blocked files' option is chosen, all downloads are allo wed, except for those that carry SafeBrowsing warnings. | |
| 1758 | |
| 1759 When the 'Disable blocked and dangerous files' option is chosen, all downl oads allowed, except for those that carry SafeBrowsing warnings or are of potent ially dangerous filetypes. | |
| 1760 | |
| 1761 When the 'No downloads allowed' option is chosen, download functionality i s completely disabled. | |
| 1762 | |
| 1763 Note that these restrictions apply to downloads triggered from web page co ntent, as well as the 'download link...' context menu option. | |
| 1764 | |
| 1765 But these restrictions do not apply to the save / download of the currentl y displayed page, nor does it apply to saving as PDF from the printing options.' '', | |
| 1766 'label': '''Download restrictions''', | |
| 1767 }, | |
| 1768 { | |
| 1715 'name': 'DownloadDirectory', | 1769 'name': 'DownloadDirectory', |
| 1716 'type': 'string', | 1770 'type': 'string', |
| 1717 'schema': { 'type': 'string' }, | 1771 'schema': { 'type': 'string' }, |
| 1718 'supported_on': ['chrome.*:11-', 'chrome_os:35-'], | 1772 'supported_on': ['chrome.*:11-', 'chrome_os:35-'], |
| 1719 'features': { | 1773 'features': { |
| 1720 'can_be_recommended': True, | 1774 'can_be_recommended': True, |
| 1721 'dynamic_refresh': True, | 1775 'dynamic_refresh': True, |
| 1722 'per_profile': True, | 1776 'per_profile': True, |
| 1723 }, | 1777 }, |
| 1724 'example_value': '/home/${user_name}/Downloads', | 1778 'example_value': '/home/${user_name}/Downloads', |
| (...skipping 7970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9695 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', | 9749 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', |
| 9696 'text': 'Default Settings (users can override)', | 9750 'text': 'Default Settings (users can override)', |
| 9697 }, | 9751 }, |
| 9698 'doc_complex_policies_on_windows': { | 9752 'doc_complex_policies_on_windows': { |
| 9699 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', | 9753 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', |
| 9700 '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>' '', | 9754 '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>' '', |
| 9701 }, | 9755 }, |
| 9702 }, | 9756 }, |
| 9703 'placeholders': [], | 9757 'placeholders': [], |
| 9704 } | 9758 } |
| OLD | NEW |