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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 # templates and documentation. The policy definition list that Chrome sees | 111 # templates and documentation. The policy definition list that Chrome sees |
| 112 # will include policies marked with 'future'. If a WIP policy isn't meant to | 112 # will include policies marked with 'future'. If a WIP policy isn't meant to |
| 113 # be seen by the policy providers either, the 'supported_on' key should be set | 113 # be seen by the policy providers either, the 'supported_on' key should be set |
| 114 # to an empty list. | 114 # to an empty list. |
| 115 # | 115 # |
| 116 # IDs: | 116 # IDs: |
| 117 # Since a Protocol Buffer definition is generated from this file, unique and | 117 # Since a Protocol Buffer definition is generated from this file, unique and |
| 118 # persistent IDs for all fields (but not for groups!) are needed. These are | 118 # persistent IDs for all fields (but not for groups!) are needed. These are |
| 119 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, | 119 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, |
| 120 # because doing so would break the deployed wire format! | 120 # because doing so would break the deployed wire format! |
| 121 # For your editing convenience: highest ID currently used: 266 | 121 # For your editing convenience: highest ID currently used: 268 |
| 122 # | 122 # |
| 123 # Placeholders: | 123 # Placeholders: |
| 124 # The following placeholder strings are automatically substituted: | 124 # The following placeholder strings are automatically substituted: |
| 125 # $1 -> Google Chrome / Chromium | 125 # $1 -> Google Chrome / Chromium |
| 126 # $2 -> Google Chrome OS / Chromium OS | 126 # $2 -> Google Chrome OS / Chromium OS |
| 127 # $3 -> Google Chrome Frame / Chromium Frame | 127 # $3 -> Google Chrome Frame / Chromium Frame |
| 128 # $6 is reserved for doc_writer | 128 # $6 is reserved for doc_writer |
| 129 # | 129 # |
| 130 # Device Policy: | 130 # Device Policy: |
| 131 # An additional flag device_only (optional, defaults to False) indicates | 131 # An additional flag device_only (optional, defaults to False) indicates |
| (...skipping 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2661 'per_profile': True, | 2661 'per_profile': True, |
| 2662 }, | 2662 }, |
| 2663 'example_value': ['http://www.example.com', '[*.]example.edu'], | 2663 'example_value': ['http://www.example.com', '[*.]example.edu'], |
| 2664 'id': 75, | 2664 'id': 75, |
| 2665 'caption': '''Allow popups on these sites''', | 2665 'caption': '''Allow popups on these sites''', |
| 2666 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to open popups. | 2666 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to open popups. |
| 2667 | 2667 |
| 2668 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''', | 2668 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''', |
| 2669 }, | 2669 }, |
| 2670 { | 2670 { |
| 2671 'name': 'RegisteredProtocolHandlers', | |
| 2672 'type': 'list', | |
| 2673 'schema': { | |
| 2674 'type': 'array', | |
| 2675 'items': { | |
| 2676 'type': 'object', | |
| 2677 'properties': { | |
| 2678 'default': { | |
| 2679 'description': 'A boolean flag indicating if the protocol hand ler should be set as the default.', | |
| 2680 'type': 'boolean' | |
| 2681 }, | |
| 2682 'protocol': { | |
| 2683 'description': 'The protocol for the protocol handler.', | |
| 2684 'type': 'string' | |
| 2685 }, | |
| 2686 'url': { | |
| 2687 'description': 'The URL of the protocol handler.', | |
| 2688 'type': 'string' | |
| 2689 } | |
| 2690 }, | |
| 2691 'required': ['protocol', 'url'] | |
| 2692 } | |
| 2693 }, | |
| 2694 'supported_on': [ | |
|
bartfab (slow)
2014/06/03 11:58:21
Nit: Would the supported_on entries not have all f
kaliamoorthi
2014/06/04 18:01:58
Done.
| |
| 2695 'chrome.*:37-', | |
| 2696 'chrome_os:37-', | |
| 2697 'ios:37-', | |
| 2698 'android:37-', | |
| 2699 ], | |
| 2700 'features': { | |
| 2701 'dynamic_refresh': False, | |
|
bartfab (slow)
2014/06/03 11:58:21
Why can this not be dynamically changed?
kaliamoorthi
2014/06/04 18:01:58
We discussed this, I'll file a separate bug.
| |
| 2702 'per_profile': True, | |
| 2703 }, | |
| 2704 'example_value': [{'protocol': 'mailto', 'url': 'https://mail.google.c om/mail/?extsrc=mailto&url=%s'}], | |
| 2705 'id': 267, | |
| 2706 'caption': '''Register protocol handlers''', | |
| 2707 'desc': '''Allows you to register a list of protocol handlers.''', | |
|
bartfab (slow)
2014/06/03 11:58:21
You should briefly document the format of the list
kaliamoorthi
2014/06/04 18:01:58
Done.
| |
| 2708 }, | |
| 2709 { | |
| 2710 'name': 'IgnoredProtocolHandlers', | |
| 2711 'type': 'list', | |
| 2712 'schema': { | |
| 2713 'type': 'array', | |
| 2714 'items': { | |
| 2715 'type': 'object', | |
| 2716 'properties': { | |
| 2717 'protocol': { | |
| 2718 'description': 'The protocol for the protocol handler.', | |
| 2719 'type': 'string' | |
| 2720 }, | |
| 2721 'url': { | |
| 2722 'description': 'The URL of the protocol handler.', | |
| 2723 'type': 'string' | |
| 2724 } | |
| 2725 }, | |
| 2726 'required': ['protocol', 'url'] | |
| 2727 } | |
| 2728 }, | |
| 2729 'supported_on': [ | |
| 2730 'chrome.*:37-', | |
| 2731 'chrome_os:37-', | |
| 2732 'ios:37-', | |
| 2733 'android:37-', | |
| 2734 ], | |
| 2735 'features': { | |
| 2736 'dynamic_refresh': False, | |
|
bartfab (slow)
2014/06/03 11:58:21
Why can this not be dynamically changed?
kaliamoorthi
2014/06/04 18:01:58
We discussed this, I'll file a separate bug.
| |
| 2737 'per_profile': True, | |
| 2738 }, | |
| 2739 'example_value': [{'protocol': 'mailto', 'url': 'https://mail.google.c om/mail/?extsrc=mailto&url=%s'}], | |
| 2740 'id': 268, | |
| 2741 'caption': '''Ignore protocol handlers''', | |
| 2742 'desc': '''Allows you to ignore a list of protocol handlers.''', | |
|
bartfab (slow)
2014/06/03 11:58:21
What does this mean? The documentation is not clea
kaliamoorthi
2014/06/04 18:01:58
I have expanded this.
| |
| 2743 }, | |
| 2744 { | |
| 2671 'name': 'PopupsBlockedForUrls', | 2745 'name': 'PopupsBlockedForUrls', |
| 2672 'type': 'list', | 2746 'type': 'list', |
| 2673 'schema': { | 2747 'schema': { |
| 2674 'type': 'array', | 2748 'type': 'array', |
| 2675 'items': { 'type': 'string' }, | 2749 'items': { 'type': 'string' }, |
| 2676 }, | 2750 }, |
| 2677 'supported_on': [ | 2751 'supported_on': [ |
| 2678 'chrome.*:11-', | 2752 'chrome.*:11-', |
| 2679 'chrome_os:11-', | 2753 'chrome_os:11-', |
| 2680 'ios:34-', | 2754 'ios:34-', |
| (...skipping 3836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6517 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', | 6591 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', |
| 6518 'text': 'deprecated', | 6592 'text': 'deprecated', |
| 6519 }, | 6593 }, |
| 6520 'doc_recommended': { | 6594 'doc_recommended': { |
| 6521 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', | 6595 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', |
| 6522 'text': 'Default Settings (users can override)', | 6596 'text': 'Default Settings (users can override)', |
| 6523 }, | 6597 }, |
| 6524 }, | 6598 }, |
| 6525 'placeholders': [], | 6599 'placeholders': [], |
| 6526 } | 6600 } |
| OLD | NEW |