Chromium Code Reviews| Index: components/policy/resources/policy_templates.json |
| diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json |
| index 9dda903feb39723a2ca50d8d0a239f65a80e40f1..6f6d1c40b791bca847819c887468fe721886d729 100644 |
| --- a/components/policy/resources/policy_templates.json |
| +++ b/components/policy/resources/policy_templates.json |
| @@ -143,7 +143,7 @@ |
| # persistent IDs for all fields (but not for groups!) are needed. These are |
| # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, |
| # because doing so would break the deployed wire format! |
| -# For your editing convenience: highest ID currently used: 370 |
| +# For your editing convenience: highest ID currently used: 371 |
| # And don't forget to also update the EnterprisePolicies enum of |
| # histograms.xml (run 'python tools/metrics/histograms/update_policies.py'). |
| # |
| @@ -1712,6 +1712,60 @@ |
| 'label': '''Set media disk cache size''', |
| }, |
| { |
| + 'name': 'DownloadRestrictions', |
| + 'type': 'int-enum', |
| + 'schema': { |
| + 'type': 'integer', |
| + 'enum': [ 0, 1, 2, 3 ], |
| + }, |
| + 'items': [ |
| + { |
| + 'name': 'AllowDownloads', |
| + 'value': 0, |
| + 'caption': '''No restrictions''', |
| + }, |
| + { |
| + 'name': 'DisableBlockedFiles', |
| + 'value': 1, |
| + 'caption': '''Disable blocked files''', |
| + }, |
| + { |
| + 'name': 'DisableBlockedAndDangerousFiles', |
| + 'value': 2, |
| + 'caption': '''Disable blocked and dangerous files''', |
| + }, |
| + { |
| + 'name': 'DisableDownloads', |
| + 'value': 3, |
| + 'caption': '''No downloads allowed''', |
| + }, |
| + ], |
|
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
|
| + 'supported_on': ['chrome.*:58-', 'chrome_os:58-'], |
| + 'features': { |
| + 'can_be_recommended': True, |
| + 'dynamic_refresh': True, |
| + 'per_profile': True, |
| + }, |
| + 'example_value': 2, |
| + 'id': 371, |
| + 'caption': '''Allow download restrictions''', |
| + 'tags': ['local-data-access'], |
| + 'desc': '''Configures the type of downloads that <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> will allow. |
| + |
| + If you set this policy, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> will prevent certain types of downloads. |
| + |
| + When the 'Disabled blocked files' option is chosen, all downloads are allowed, except for those that carry SafeBrowsing warnings. |
| + |
| + When the 'Disable blocked and dangerous files' option is chosen, all downloads allowed, except for those that carry SafeBrowsing warnings or are of potentially dangerous filetypes. |
| + |
| + When the 'No downloads allowed' option is chosen, download functionality is completely disabled. |
| + |
| + Note that these restrictions apply to downloads triggered from web page content, as well as the 'download link...' context menu option. |
| + |
| + But these restrictions do not apply to the save / download of the currently displayed page, nor does it apply to saving as PDF from the printing options.''', |
| + 'label': '''Download restrictions''', |
| + }, |
| + { |
| 'name': 'DownloadDirectory', |
| 'type': 'string', |
| 'schema': { 'type': 'string' }, |