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

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

Issue 118253005: Add managed policies for Native Messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index bfca20328ca0d9c7200639e0b9ef215b74154e0f..6ef4702a8290a03328dbf0892705cce453e20099 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: 250
+# For your editing convenience: highest ID currently used: 252
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -2530,6 +2530,64 @@
],
},
{
+ 'name': 'NativeMessaging',
+ 'type': 'group',
+ 'caption': '''Native Messaging''',
+ 'desc': '''Configures policies for Native Messaging. Blacklisted native messaging hosts won't be allowed unless they are whitelisted.''',
+ 'policies': [
+ {
+ 'name': 'NativeMessagingBlacklist',
+ 'type': 'list',
+ 'schema': {
+ 'type': 'array',
+ 'items': { 'type': 'string' },
+ },
+ 'supported_on': ['chrome.*:34-'],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': [
+ 'com.native.messaging.host.name1',
+ 'com.native.messaging.host.name2',
+ ],
+ 'id': 251,
+ 'caption': '''Configure native messaging blacklist''',
+ 'desc': '''Allows you to specify which native messaging hosts that should not be loaded.
+
+ A blacklist value of '*' means all native messaging hosts are blacklisted unless they are explicitly listed in the whitelist.
+
+ If this policy is left not set <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> will load all installed native messaging hosts.''',
+ 'label': '''Names of the forbidden native messaging hosts (or * for all)''',
+ },
+ {
+ 'name': 'NativeMessagingWhitelist',
+ 'type': 'list',
+ 'schema': {
+ 'type': 'array',
+ 'items': { 'type': 'string' },
+ },
+ 'supported_on': ['chrome.*:34-'],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': [
+ 'com.native.messaging.host.name1',
+ 'com.native.messaging.host.name2',
+ ],
+ 'id': 252,
+ 'caption': '''Configure native messaging whitelist''',
+ 'desc': '''Allows you to specify which native messaging hosts are not subject to the blacklist.
+
+ A blacklist value of * means all native messaging hosts are blacklisted and only native messaging hosts listed in the whitelist will be loaded.
+
+ By default, all native messaging hosts are whitelisted, but if all native messaging hosts have been blacklisted by policy, the whitelist can be used to override that policy.''',
+ 'label': '''Names of the native messaging hosts to exempt from the blacklist''',
+ },
+ ],
+ },
+ {
'name': 'Disable3DAPIs',
'type': 'main',
'schema': { 'type': 'boolean' },
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698