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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 # chrome.* -> Chrome policy definition list | 93 # chrome.* -> Chrome policy definition list |
| 94 # chrome_os -> Chrome policy definition list, when building OS_CHROMEOS | 94 # chrome_os -> Chrome policy definition list, when building OS_CHROMEOS |
| 95 # | 95 # |
| 96 # Annotations: | 96 # Annotations: |
| 97 # Additional information is specified under keys 'features' and | 97 # Additional information is specified under keys 'features' and |
| 98 # 'example_value'. These are used in the generated documentation and example | 98 # 'example_value'. These are used in the generated documentation and example |
| 99 # policy configuration files. 'dynamic_refresh' controls if the generated | 99 # policy configuration files. 'dynamic_refresh' controls if the generated |
| 100 # documentation should state that the policy supports dynamic refresh or not. | 100 # documentation should state that the policy supports dynamic refresh or not. |
| 101 # Supporting dynamic refresh means that Chrome respects the changes to the | 101 # Supporting dynamic refresh means that Chrome respects the changes to the |
| 102 # policy immediately, without the need for restart. | 102 # policy immediately, without the need for restart. |
| 103 # 'can_be_mandatory' can be set to False to exclude that policy in the | |
| 104 # mandatory policies template. This only affects the template generation; | |
| 105 # The default is True. | |
| 103 # 'can_be_recommended' can be set to True to include that policy in the | 106 # 'can_be_recommended' can be set to True to include that policy in the |
| 104 # recommended policies templates. This only affects the template generation; | 107 # recommended policies templates. This only affects the template generation; |
| 105 # all policies can be at the recommended level. The default is False. | 108 # all policies can be at the recommended level. The default is False. |
| 106 # | 109 # |
| 107 # The 'max_size' key is used to specify the maximal size of the external data | 110 # The 'max_size' key is used to specify the maximal size of the external data |
| 108 # that a policy can reference, in bytes. This annotation is compulsory for | 111 # that a policy can reference, in bytes. This annotation is compulsory for |
| 109 # policies of type 'external'. It is ignored for all other policy types. | 112 # policies of type 'external'. It is ignored for all other policy types. |
| 110 # | 113 # |
| 111 # The 'future' key is used to indicate that a policy isn't yet ready for | 114 # The 'future' key is used to indicate that a policy isn't yet ready for |
| 112 # usage. It defaults to False, and currently affects the generated policy | 115 # usage. It defaults to False, and currently affects the generated policy |
| (...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2736 } | 2739 } |
| 2737 }, | 2740 }, |
| 2738 'required': ['protocol', 'url'] | 2741 'required': ['protocol', 'url'] |
| 2739 } | 2742 } |
| 2740 }, | 2743 }, |
| 2741 'supported_on': ['chrome.*:37-', 'chrome_os:37-'], | 2744 'supported_on': ['chrome.*:37-', 'chrome_os:37-'], |
| 2742 'features': { | 2745 'features': { |
| 2743 'dynamic_refresh': False, | 2746 'dynamic_refresh': False, |
| 2744 'per_profile': True, | 2747 'per_profile': True, |
| 2745 'can_be_recommended': True, | 2748 'can_be_recommended': True, |
| 2749 'can_be_mandatory' : False, | |
| 2746 }, | 2750 }, |
| 2747 'example_value': [{'protocol': 'mailto', 'url': 'https://mail.google.c om/mail/?extsrc=mailto&url=%s', 'default': 'true'}], | 2751 'example_value': [{'protocol': 'mailto', 'url': 'https://mail.google.c om/mail/?extsrc=mailto&url=%s', 'default': 'true'}], |
| 2748 'id': 268, | 2752 'id': 268, |
| 2749 'caption': '''Register protocol handlers''', | 2753 'caption': '''Register protocol handlers''', |
| 2750 'desc': '''Allows you to register a list of protocol handlers. This ca n only be a recommended policy. The property |protocol| should be set to the sch eme such as 'mailto' and the property |url| should be set to the URL pattern of the application that handles the scheme. The pattern can include a '%s', which i f present will be replaced by the handled URL. | 2754 'desc': '''Allows you to register a list of protocol handlers. This ca n only be a recommended policy. The property |protocol| should be set to the sch eme such as 'mailto' and the property |url| should be set to the URL pattern of the application that handles the scheme. The pattern can include a '%s', which i f present will be replaced by the handled URL. |
| 2751 | 2755 |
| 2752 The protocol handlers registered by policy are merged with the ones re gistered by the user and both are available for use. The user can override the p rotocol handlers installed by policy by installing a new default handler, but ca nnot remove a protocol handler registered by policy.''', | 2756 The protocol handlers registered by policy are merged with the ones re gistered by the user and both are available for use. The user can override the p rotocol handlers installed by policy by installing a new default handler, but ca nnot remove a protocol handler registered by policy.''', |
| 2753 }, | 2757 }, |
| 2754 { | 2758 { |
| 2755 'name': 'PopupsBlockedForUrls', | 2759 'name': 'PopupsBlockedForUrls', |
| (...skipping 3866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6622 }, | 6626 }, |
| 6623 { | 6627 { |
| 6624 'name': 'SessionLocales', | 6628 'name': 'SessionLocales', |
| 6625 'type': 'list', | 6629 'type': 'list', |
| 6626 'schema': { | 6630 'schema': { |
| 6627 'type': 'array', | 6631 'type': 'array', |
| 6628 'items': { 'type': 'string' }, | 6632 'items': { 'type': 'string' }, |
| 6629 }, | 6633 }, |
| 6630 'supported_on': ['chrome_os:38-'], | 6634 'supported_on': ['chrome_os:38-'], |
| 6631 'features': { | 6635 'features': { |
| 6632 'can_be_recommended': True, | 6636 'can_be_recommended': True, |
|
Joao da Silva
2014/09/08 09:55:27
This policy should have that flag too (see its des
kaliamoorthi
2014/09/08 10:05:00
Done.
| |
| 6633 'dynamic_refresh': True, | 6637 'dynamic_refresh': True, |
| 6634 'per_profile': True, | 6638 'per_profile': True, |
| 6635 }, | 6639 }, |
| 6636 'example_value': ['de', 'fr'], | 6640 'example_value': ['de', 'fr'], |
| 6637 'id': 274, | 6641 'id': 274, |
| 6638 'caption': '''Set the recommended locales for a public session''', | 6642 'caption': '''Set the recommended locales for a public session''', |
| 6639 'desc': '''Sets one or more recommended locales for a public sessions, all owing users to easily choose one of these locales. | 6643 'desc': '''Sets one or more recommended locales for a public sessions, all owing users to easily choose one of these locales. |
| 6640 | 6644 |
| 6641 The user can choose a locale and a keyboard layout before starting a publi c session. By default, all locales supported by <ph name="PRODUCT_OS_NAME">$2<ex >Google Chrome OS</ex></ph> are listed in alphabetic order. You can use this pol icy to move a set of recommended locales to the top of the list. | 6645 The user can choose a locale and a keyboard layout before starting a publi c session. By default, all locales supported by <ph name="PRODUCT_OS_NAME">$2<ex >Google Chrome OS</ex></ph> are listed in alphabetic order. You can use this pol icy to move a set of recommended locales to the top of the list. |
| 6642 | 6646 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6763 'text': '''Description''' | 6767 'text': '''Description''' |
| 6764 }, | 6768 }, |
| 6765 'doc_feature_dynamic_refresh': { | 6769 'doc_feature_dynamic_refresh': { |
| 6766 'desc': '''The name of the feature that indicates for a given policy that changes to it are respected by Chromium without a browser restart''', | 6770 'desc': '''The name of the feature that indicates for a given policy that changes to it are respected by Chromium without a browser restart''', |
| 6767 'text': '''Dynamic Policy Refresh''' | 6771 'text': '''Dynamic Policy Refresh''' |
| 6768 }, | 6772 }, |
| 6769 'doc_feature_can_be_recommended': { | 6773 'doc_feature_can_be_recommended': { |
| 6770 'desc': '''The name of the feature that indicates for a given policy that it can be recommended, instead of mandatory''', | 6774 'desc': '''The name of the feature that indicates for a given policy that it can be recommended, instead of mandatory''', |
| 6771 'text': '''Can Be Recommended''' | 6775 'text': '''Can Be Recommended''' |
| 6772 }, | 6776 }, |
| 6777 'doc_feature_can_be_mandatory': { | |
| 6778 'desc': '''The name of the feature that indicates for a given policy that it can be mandatory, instead of recommended''', | |
| 6779 'text': '''Can Be Mandatory''' | |
| 6780 }, | |
| 6773 'doc_feature_per_profile': { | 6781 'doc_feature_per_profile': { |
| 6774 'desc': '''The name of the feature that indicates whether a policy is appl icable to browser Profiles individually or whether it affects the entire browser .''', | 6782 'desc': '''The name of the feature that indicates whether a policy is appl icable to browser Profiles individually or whether it affects the entire browser .''', |
| 6775 'text': '''Per Profile''' | 6783 'text': '''Per Profile''' |
| 6776 }, | 6784 }, |
| 6777 'doc_deprecated': { | 6785 'doc_deprecated': { |
| 6778 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', | 6786 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', |
| 6779 'text': 'deprecated', | 6787 'text': 'deprecated', |
| 6780 }, | 6788 }, |
| 6781 'doc_recommended': { | 6789 'doc_recommended': { |
| 6782 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', | 6790 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', |
| 6783 'text': 'Default Settings (users can override)', | 6791 'text': 'Default Settings (users can override)', |
| 6784 }, | 6792 }, |
| 6785 'doc_complex_policies_on_windows': { | 6793 'doc_complex_policies_on_windows': { |
| 6786 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', | 6794 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', |
| 6787 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">http://www.chromium.org/administrators/complex-policies-on-windows<ex >http://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>''' , | 6795 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">http://www.chromium.org/administrators/complex-policies-on-windows<ex >http://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>''' , |
| 6788 }, | 6796 }, |
| 6789 }, | 6797 }, |
| 6790 'placeholders': [], | 6798 'placeholders': [], |
| 6791 } | 6799 } |
| OLD | NEW |