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': '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.*:60-', 'chrome_os:60-'], | |
|
pastarmovj
2017/06/14 08:48:35
Shouldn't this be 61 by now?
MAD
2017/06/14 17:50:21
Done.
| |
| 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 . | |
|
pastarmovj
2017/06/14 08:48:35
Add another paragraph that explains what does it m
MAD
2017/06/14 17:50:21
Done.
| |
| 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.' '', | |
|
pastarmovj
2017/06/14 08:48:35
Do we have a help center article about SafeBrowsin
pastarmovj
2017/06/14 08:48:35
nit: skip the "But ".
MAD
2017/06/14 17:50:21
Done.
MAD
2017/06/14 17:50:21
There are other mentions of safe browsing within o
pastarmovj
2017/06/16 07:17:13
If you want to you can do that in another CL. But
| |
| 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 7969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9694 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', | 9748 '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)', | 9749 'text': 'Default Settings (users can override)', |
| 9696 }, | 9750 }, |
| 9697 'doc_complex_policies_on_windows': { | 9751 'doc_complex_policies_on_windows': { |
| 9698 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', | 9752 '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>' '', | 9753 '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 }, | 9754 }, |
| 9701 }, | 9755 }, |
| 9702 'placeholders': [], | 9756 'placeholders': [], |
| 9703 } | 9757 } |
| OLD | NEW |