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

Unified Diff: components/policy/resources/policy_templates.json

Issue 309553011: Enable policy support for registering protocol handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Issue_116119_pre
Patch Set: After rebase Created 6 years, 6 months 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 c9a140590216c9ff1537460c6ebcc9397b9743d7..f091f94b8e20c8a3d95d699ad3b11f2c52252d3b 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -118,7 +118,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: 267
+# For your editing convenience: highest ID currently used: 269
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -2668,6 +2668,74 @@
If this policy is left not set the global default value will be used for all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''',
},
{
+ 'name': 'RegisteredProtocolHandlers',
+ 'type': 'list',
+ 'schema': {
+ 'type': 'array',
+ 'items': {
+ 'type': 'object',
+ 'properties': {
+ 'default': {
+ 'description': 'A boolean flag indicating if the protocol handler should be set as the default.',
+ 'type': 'boolean'
+ },
+ 'protocol': {
+ 'description': 'The protocol for the protocol handler.',
+ 'type': 'string'
+ },
+ 'url': {
+ 'description': 'The URL of the protocol handler.',
+ 'type': 'string'
+ }
+ },
+ 'required': ['protocol', 'url']
+ }
+ },
+ 'supported_on': ['chrome.*:37-', 'chrome_os:37-', 'ios:37-', 'android:37-'],
bartfab (slow) 2014/06/06 12:01:58 1: As pointed out by Joao, please verify whether t
kaliamoorthi 2014/06/10 17:14:27 We discusses this.
+ 'features': {
+ 'dynamic_refresh': False,
+ 'per_profile': True,
+ },
+ 'example_value': [{'protocol': 'mailto', 'url': 'https://mail.google.com/mail/?extsrc=mailto&url=%s'}],
+ 'id': 268,
+ 'caption': '''Register protocol handlers''',
+ 'desc': '''Allows you to register a list of protocol handlers. This can only be a recommended policy. The field protocol should be set to the scheme such as 'mailto' and the field url should be set to the URL pattern of the application that handles the scheme. The pattern should include a '%s' as a placeholder for data.
bartfab (slow) 2014/06/06 12:01:58 Nit: Put the field names in pipes to make them eas
kaliamoorthi 2014/06/10 17:14:27 Done.
+
+ The protocol handlers registered by policy are merged with the ones registered by user via settings and both available for use. The user can override the protocol handlers installed by policy by installing a new default handler, but is not allowed to remove a protocol handler registered by policy. ''',
bartfab (slow) 2014/06/06 12:01:58 Nit 1: s/by user/by the user/ Nit 2: s/ '''/'''/
kaliamoorthi 2014/06/10 17:14:27 Done.
+ },
+ {
+ 'name': 'IgnoredProtocolHandlers',
+ 'type': 'list',
+ 'schema': {
+ 'type': 'array',
+ 'items': {
+ 'type': 'object',
+ 'properties': {
+ 'protocol': {
+ 'description': 'The protocol for the protocol handler.',
+ 'type': 'string'
+ },
+ 'url': {
+ 'description': 'The URL of the protocol handler.',
+ 'type': 'string'
+ }
+ },
+ 'required': ['protocol', 'url']
+ }
+ },
+ 'supported_on': ['chrome.*:37-', 'chrome_os:37-', 'ios:37-', 'android:37-'],
+ 'features': {
+ 'dynamic_refresh': False,
+ 'per_profile': True,
+ },
+ 'example_value': [{'protocol': 'mailto', 'url': 'https://mail.google.com/mail/?extsrc=mailto&url=%s'}],
+ 'id': 269,
+ 'caption': '''Ignore protocol handlers''',
+ 'desc': '''Allows you to ignore a list of protocol handlers, i.e., when an app attempts to install a protocol handler in the list, the attempt is silently ignored without requiring user input. This can only be a recommended policy. The field protocol should be set to the scheme such as 'mailto' and the field url should be set to the URL pattern of the application that handles the scheme.
bartfab (slow) 2014/06/06 12:01:58 1: The combination of preventing the user from doi
kaliamoorthi 2014/06/10 17:14:27 This is not valid anymore.
+
+ The protocol handlers ignored by policy are merged with the ones ignored by user via settings. The user is not allowed to remove a protocol handler ignored by policy. ''',
bartfab (slow) 2014/06/06 12:01:58 Nit 1: s/by user/by the user/ Nit 2: s/ '''/'''/
kaliamoorthi 2014/06/10 17:14:27 This is not valid anymore.
+ },
+ {
'name': 'PopupsBlockedForUrls',
'type': 'list',
'schema': {

Powered by Google App Engine
This is Rietveld 408576698