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

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

Issue 431493003: Implement policy for kNetworkPredictionOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and increment policy id yet again. Created 6 years, 4 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
« 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 # templates and documentation. The policy definition list that Chrome sees 113 # templates and documentation. The policy definition list that Chrome sees
114 # will include policies marked with 'future'. If a WIP policy isn't meant to 114 # will include policies marked with 'future'. If a WIP policy isn't meant to
115 # be seen by the policy providers either, the 'supported_on' key should be set 115 # be seen by the policy providers either, the 'supported_on' key should be set
116 # to an empty list. 116 # to an empty list.
117 # 117 #
118 # IDs: 118 # IDs:
119 # Since a Protocol Buffer definition is generated from this file, unique and 119 # Since a Protocol Buffer definition is generated from this file, unique and
120 # persistent IDs for all fields (but not for groups!) are needed. These are 120 # persistent IDs for all fields (but not for groups!) are needed. These are
121 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 121 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
122 # because doing so would break the deployed wire format! 122 # because doing so would break the deployed wire format!
123 # For your editing convenience: highest ID currently used: 272 123 # For your editing convenience: highest ID currently used: 273
124 # 124 #
125 # Placeholders: 125 # Placeholders:
126 # The following placeholder strings are automatically substituted: 126 # The following placeholder strings are automatically substituted:
127 # $1 -> Google Chrome / Chromium 127 # $1 -> Google Chrome / Chromium
128 # $2 -> Google Chrome OS / Chromium OS 128 # $2 -> Google Chrome OS / Chromium OS
129 # $3 -> Google Chrome Frame / Chromium Frame 129 # $3 -> Google Chrome Frame / Chromium Frame
130 # $6 is reserved for doc_writer 130 # $6 is reserved for doc_writer
131 # 131 #
132 # Device Policy: 132 # Device Policy:
133 # An additional flag device_only (optional, defaults to False) indicates 133 # An additional flag device_only (optional, defaults to False) indicates
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 'caption': '''Enable network prediction''', 304 'caption': '''Enable network prediction''',
305 'desc': '''Enables network prediction in <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> and prevents users from changing this setting. 305 'desc': '''Enables network prediction in <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> and prevents users from changing this setting.
306 306
307 This controls not only DNS prefetching but also TCP and SSL preconnection and prerendering of web pages. The policy name refers to DNS prefetching for his torical reasons. 307 This controls not only DNS prefetching but also TCP and SSL preconnection and prerendering of web pages. The policy name refers to DNS prefetching for his torical reasons.
308 308
309 If you enable or disable this setting, users cannot change or override thi s setting in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>. 309 If you enable or disable this setting, users cannot change or override thi s setting in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>.
310 310
311 If this policy is left not set, this will be enabled but the user will be able to change it.''', 311 If this policy is left not set, this will be enabled but the user will be able to change it.''',
312 }, 312 },
313 { 313 {
314 'name': 'NetworkPredictionOptions',
315 'type': 'int-enum',
316 'schema': {
317 'type': 'integer',
318 'enum': [ 0, 1, 2 ],
319 },
320 'items': [
321 {
322 'name': 'NetworkPredictionAlways',
323 'value': 0,
324 'caption': '''Predict network actions on any network connection''',
325 },
326 {
327 'name': 'NetworkPredictionWifiOnly',
328 'value': 1,
329 'caption': '''Predict network actions on any network that is not
330 cellular''',
331 },
332 {
333 'name': 'NetworkPredictionNever',
334 'value': 2,
335 'caption': '''Do not predict network actions on any network connection ''',
336 },
337 ],
338 'supported_on': ['chrome.*:38-', 'chrome_os:38-', 'android:38-'],
339 'features': {
340 'can_be_recommended': True,
341 'dynamic_refresh': True,
342 'per_profile': True,
343 },
344 'example_value': 1,
345 'id': 273,
346 'caption': '''Enable network prediction''',
347 'desc': '''Enables network prediction in <ph name="PRODUCT_NAME">$1<ex>Goo gle Chrome</ex></ph> and prevents users from changing this setting.
348
349 This controls DNS prefetching, TCP and SSL preconnection and prerendering of web pages.
350
351 If you set this preference to 'always', 'never', or 'WiFi only', users can not change or override this setting in <ph name="PRODUCT_NAME">$1<ex>Google Chro me</ex></ph>.
352
353 If this policy is left not set, network prediction will be enabled but the user will be able to change it.''',
354 },
355 {
314 'name': 'WPADQuickCheckEnabled', 356 'name': 'WPADQuickCheckEnabled',
315 'type': 'main', 357 'type': 'main',
316 'schema': { 'type': 'boolean' }, 358 'schema': { 'type': 'boolean' },
317 'supported_on': [ 'chrome.*:35-', 'chrome_os:35-' ], 359 'supported_on': [ 'chrome.*:35-', 'chrome_os:35-' ],
318 'features': { 360 'features': {
319 'dynamic_refresh': False, 361 'dynamic_refresh': False,
320 'per_profile': False, 362 'per_profile': False,
321 }, 363 },
322 'example_value': True, 364 'example_value': True,
323 'id': 261, 365 'id': 261,
(...skipping 6356 matching lines...) Expand 10 before | Expand all | Expand 10 after
6680 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 6722 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
6681 'text': 'deprecated', 6723 'text': 'deprecated',
6682 }, 6724 },
6683 'doc_recommended': { 6725 'doc_recommended': {
6684 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 6726 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
6685 'text': 'Default Settings (users can override)', 6727 'text': 'Default Settings (users can override)',
6686 }, 6728 },
6687 }, 6729 },
6688 'placeholders': [], 6730 'placeholders': [],
6689 } 6731 }
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