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

Unified 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: fixes addressing #39 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index 6209b772ef9082b2c521d823b0cdd2ae0faea6f6..23953df7288737c00c260a0f7afc8694a3e97d0b 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -1802,6 +1802,10 @@
'allowed_permissions': {
'$ref': 'ListOfPermissions',
},
+ 'minimum_version_required': {
+ 'type': 'string',
+ 'pattern': '^[0-9]+([.][0-9]+)*$',
+ },
},
},
'^update_url:': {
@@ -1851,6 +1855,7 @@
'abcdefghijklmnopabcdefghijklmnop' : {
'installation_mode': 'allowed',
'blocked_permissions': ['history'],
+ 'minimum_version_required': '1.0.1',
},
'bcdefghijklmnopabcdefghijklmnopa' : {
'installation_mode': 'force_installed',
@@ -1891,6 +1896,8 @@
"allowed_permissions": similar to "blocked_permissions", but instead explicitly allow some permissions which might be blocked by global blocked permission list, thus can not be configured for "*" extension. Note that this setting doesn't give granted permissions to extensions automatically.
+ "minimum_version_required": maps to a version string. The format of the 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 will be disabled. This applies to force-installed extensions as well.
bartfab (slow) 2014/12/04 13:53:01 Nit: s/Extension with/An extension with a/
binjin 2014/12/04 15:43:15 Done.
+
The following settings can be used only for the default "*" configuration:
"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.

Powered by Google App Engine
This is Rietveld 408576698