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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 250 121 # For your editing convenience: highest ID currently used: 252
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 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 'example_value': ['http://www.example.com', '[*.]example.edu'], 2523 'example_value': ['http://www.example.com', '[*.]example.edu'],
2524 'id': 106, 2524 'id': 106,
2525 'caption': '''Block notifications on these sites''', 2525 'caption': '''Block notifications on these sites''',
2526 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to display notifications. 2526 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to display notifications.
2527 2527
2528 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultNotificationsSetting' policy if it is set, or the user's personal configuration otherwise.''', 2528 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultNotificationsSetting' policy if it is set, or the user's personal configuration otherwise.''',
2529 }, 2529 },
2530 ], 2530 ],
2531 }, 2531 },
2532 { 2532 {
2533 'name': 'NativeMessaging',
2534 'type': 'group',
2535 'caption': '''Native Messaging''',
2536 'desc': '''Configures policies for Native Messaging. Blacklisted native me ssaging hosts won't be allowed unless they are whitelisted.''',
2537 'policies': [
2538 {
2539 'name': 'NativeMessagingBlacklist',
2540 'type': 'list',
2541 'schema': {
2542 'type': 'array',
2543 'items': { 'type': 'string' },
2544 },
2545 'supported_on': ['chrome.*:34-'],
2546 'features': {
2547 'dynamic_refresh': True,
2548 'per_profile': True,
2549 },
2550 'example_value': [
2551 'com.native.messaging.host.name1',
2552 'com.native.messaging.host.name2',
2553 ],
2554 'id': 251,
2555 'caption': '''Configure native messaging blacklist''',
2556 'desc': '''Allows you to specify which native messaging hosts that sho uld not be loaded.
2557
2558 A blacklist value of '*' means all native messaging hosts are blacklis ted unless they are explicitly listed in the whitelist.
2559
2560 If this policy is left not set <ph name="PRODUCT_NAME">$1<ex>Google Ch rome</ex></ph> will load all installed native messaging hosts.''',
2561 'label': '''Names of the forbidden native messaging hosts (or * for al l)''',
2562 },
2563 {
2564 'name': 'NativeMessagingWhitelist',
2565 'type': 'list',
2566 'schema': {
2567 'type': 'array',
2568 'items': { 'type': 'string' },
2569 },
2570 'supported_on': ['chrome.*:34-'],
2571 'features': {
2572 'dynamic_refresh': True,
2573 'per_profile': True,
2574 },
2575 'example_value': [
2576 'com.native.messaging.host.name1',
2577 'com.native.messaging.host.name2',
2578 ],
2579 'id': 252,
2580 'caption': '''Configure native messaging whitelist''',
2581 'desc': '''Allows you to specify which native messaging hosts are not subject to the blacklist.
2582
2583 A blacklist value of * means all native messaging hosts are blackliste d and only native messaging hosts listed in the whitelist will be loaded.
2584
2585 By default, all native messaging hosts are whitelisted, but if all nat ive messaging hosts have been blacklisted by policy, the whitelist can be used t o override that policy.''',
2586 'label': '''Names of the native messaging hosts to exempt from the bla cklist''',
2587 },
2588 ],
2589 },
2590 {
2533 'name': 'Disable3DAPIs', 2591 'name': 'Disable3DAPIs',
2534 'type': 'main', 2592 'type': 'main',
2535 'schema': { 'type': 'boolean' }, 2593 'schema': { 'type': 'boolean' },
2536 'supported_on': ['chrome.*:9-', 'chrome_os:11-'], 2594 'supported_on': ['chrome.*:9-', 'chrome_os:11-'],
2537 'features': { 2595 'features': {
2538 'dynamic_refresh': True, 2596 'dynamic_refresh': True,
2539 'per_profile': True, 2597 'per_profile': True,
2540 }, 2598 },
2541 'example_value': False, 2599 'example_value': False,
2542 'id': 55, 2600 'id': 55,
(...skipping 3343 matching lines...) Expand 10 before | Expand all | Expand 10 after
5886 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 5944 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
5887 'text': 'deprecated', 5945 'text': 'deprecated',
5888 }, 5946 },
5889 'doc_recommended': { 5947 'doc_recommended': {
5890 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 5948 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
5891 'text': 'Default Settings (users can override)', 5949 'text': 'Default Settings (users can override)',
5892 }, 5950 },
5893 }, 5951 },
5894 'placeholders': [], 5952 'placeholders': [],
5895 } 5953 }
OLDNEW
« 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