Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: components/policy/resources/policy_templates.json

Issue 706623004: Add minimum version to extension management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-update-url
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 'type': 'array', 1754 'type': 'array',
1755 'items': { 1755 'items': {
1756 'type': 'string', 1756 'type': 'string',
1757 'pattern': '^[a-z][a-zA-Z.]*$', 1757 'pattern': '^[a-z][a-zA-Z.]*$',
1758 }, 1758 },
1759 'id': 'ListOfPermissions', 1759 'id': 'ListOfPermissions',
1760 }, 1760 },
1761 'allowed_permissions': { 1761 'allowed_permissions': {
1762 '$ref': 'ListOfPermissions', 1762 '$ref': 'ListOfPermissions',
1763 }, 1763 },
1764 'minimum_version_required': {
1765 'type': 'string',
1766 'pattern': '^[0-9]+([.][0-9]+)*$',
1767 },
1764 }, 1768 },
1765 }, 1769 },
1766 '^update_url:': { 1770 '^update_url:': {
1767 'type': 'object', 1771 'type': 'object',
1768 'properties': { 1772 'properties': {
1769 'installation_mode': { 1773 'installation_mode': {
1770 'type': 'string', 1774 'type': 'string',
1771 'enum': ['blocked', 'allowed'] 1775 'enum': ['blocked', 'allowed']
1772 }, 1776 },
1773 'blocked_permissions': { 1777 'blocked_permissions': {
(...skipping 29 matching lines...) Expand all
1803 'future': True, 1807 'future': True,
1804 'supported_on': ['chrome.*:40-', 'chrome_os:40-'], 1808 'supported_on': ['chrome.*:40-', 'chrome_os:40-'],
1805 'features': { 1809 'features': {
1806 'dynamic_refresh': True, 1810 'dynamic_refresh': True,
1807 'per_profile': True, 1811 'per_profile': True,
1808 }, 1812 },
1809 'example_value': { 1813 'example_value': {
1810 'abcdefghijklmnopabcdefghijklmnop' : { 1814 'abcdefghijklmnopabcdefghijklmnop' : {
1811 'installation_mode': 'allowed', 1815 'installation_mode': 'allowed',
1812 'blocked_permissions': ['history'], 1816 'blocked_permissions': ['history'],
1817 'minimum_version_required': '1.0.1',
1813 }, 1818 },
1814 'bcdefghijklmnopabcdefghijklmnopa' : { 1819 'bcdefghijklmnopabcdefghijklmnopa' : {
1815 'installation_mode': 'force_installed', 1820 'installation_mode': 'force_installed',
1816 'update_url': 'http://example.com/update_url', 1821 'update_url': 'http://example.com/update_url',
1817 'allowed_permissions': ['downloads'], 1822 'allowed_permissions': ['downloads'],
1818 }, 1823 },
1819 'update_url:http://www.example.com/update.xml': { 1824 'update_url:http://www.example.com/update.xml': {
1820 'blocked_permissions': ['wallpaper'], 1825 'blocked_permissions': ['wallpaper'],
1821 }, 1826 },
1822 '*': { 1827 '*': {
(...skipping 20 matching lines...) Expand all
1843 * "normal_installed": the extension is automatically installed but can be disabled by the user. 1848 * "normal_installed": the extension is automatically installed but can be disabled by the user.
1844 1849
1845 The "installation_mode" can also be configured for multiple extensions as well, including the "*" extension (as default settings) and extensions with same update URL. Only the "allowed" and "blocked" values can be used in this cas e. 1850 The "installation_mode" can also be configured for multiple extensions as well, including the "*" extension (as default settings) and extensions with same update URL. Only the "allowed" and "blocked" values can be used in this cas e.
1846 1851
1847 If the mode is set to "force_installed" or "normal_installed" then an "update_url" must be configured too. Note that the update URL set in this policy is only used for the initial installation; subsequent updates of the extension will use the update URL indicated in the extension's manifest. The update URL sh ould point to an Update Manifest XML document as mentioned above. 1852 If the mode is set to "force_installed" or "normal_installed" then an "update_url" must be configured too. Note that the update URL set in this policy is only used for the initial installation; subsequent updates of the extension will use the update URL indicated in the extension's manifest. The update URL sh ould point to an Update Manifest XML document as mentioned above.
1848 1853
1849 "blocked_permissions": maps to a list of strings indicating the blocke d API permissions for the extension. The permissions names are same as the permi ssion strings declared in manifest of extension as described at <ph name="LINK_T O_EXTENSION_DOC3">https://developer.chrome.com/extensions/declare_permissions</p h>. This setting also can be configured for "*" extension. If the extension requ ires a permission which is on the blocklist, it will not be allowed to load. If it contains a blocked permission as optional requirement, it will be handled in the normal way, but requesting conflicting permissions will be declined automati cally at runtime. 1854 "blocked_permissions": maps to a list of strings indicating the blocke d API permissions for the extension. The permissions names are same as the permi ssion strings declared in manifest of extension as described at <ph name="LINK_T O_EXTENSION_DOC3">https://developer.chrome.com/extensions/declare_permissions</p h>. This setting also can be configured for "*" extension. If the extension requ ires a permission which is on the blocklist, it will not be allowed to load. If it contains a blocked permission as optional requirement, it will be handled in the normal way, but requesting conflicting permissions will be declined automati cally at runtime.
1850 1855
1851 "allowed_permissions": similar to "blocked_permissions", but instead e xplicitly allow some permissions which might be blocked by global blocked permis sion list, thus can not be configured for "*" extension. Note that this setting doesn't give granted permissions to extensions automatically. 1856 "allowed_permissions": similar to "blocked_permissions", but instead e xplicitly allow some permissions which might be blocked by global blocked permis sion list, thus can not be configured for "*" extension. Note that this setting doesn't give granted permissions to extensions automatically.
1852 1857
1858 "minimum_version_required": maps to a version string. The format of th e version string is the same as the one used in extension manifest, as described at <ph name="LINK_TO_EXTENSION_DOC4">https://developer.chrome.com/apps/manifest /version</ph>. Extension with version older than the specified minimum version w ill be disabled. This applies to force-installed extensions as well.
1859
1853 The following settings can be used only for the default "*" configurat ion: 1860 The following settings can be used only for the default "*" configurat ion:
1854 1861
1855 "install_sources": Each item in this list is an extension-style match pattern (see https://developer.chrome.com/extensions/match_patterns). Users will be able to easily install items from any URL that matches an item in this list. Both the location of the *.crx file and the page where the download is started from (i.e. the referrer) must be allowed by these patterns. 1862 "install_sources": Each item in this list is an extension-style match pattern (see https://developer.chrome.com/extensions/match_patterns). Users will be able to easily install items from any URL that matches an item in this list. Both the location of the *.crx file and the page where the download is started from (i.e. the referrer) must be allowed by these patterns.
1856 1863
1857 "allowed_types": This setting whitelists the allowed types of extensio n/apps that can be installed in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex> </ph>. The value is a list of strings, each of which should be one of the follo wing: "extension", "theme", "user_script", "hosted_app", "legacy_packaged_app", "platform_app". See the <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> ex tensions documentation for more information on these types. 1864 "allowed_types": This setting whitelists the allowed types of extensio n/apps that can be installed in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex> </ph>. The value is a list of strings, each of which should be one of the follo wing: "extension", "theme", "user_script", "hosted_app", "legacy_packaged_app", "platform_app". See the <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> ex tensions documentation for more information on these types.
1858 1865
1859 This policy isn't ready for usage yet, please don't use it. 1866 This policy isn't ready for usage yet, please don't use it.
1860 ''' 1867 '''
1861 }, 1868 },
1862 ], 1869 ],
(...skipping 5231 matching lines...) Expand 10 before | Expand all | Expand 10 after
7094 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 7101 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
7095 'text': 'Default Settings (users can override)', 7102 'text': 'Default Settings (users can override)',
7096 }, 7103 },
7097 'doc_complex_policies_on_windows': { 7104 'doc_complex_policies_on_windows': {
7098 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 7105 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
7099 '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>''' , 7106 '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>''' ,
7100 }, 7107 },
7101 }, 7108 },
7102 'placeholders': [], 7109 'placeholders': [],
7103 } 7110 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | extensions/common/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698