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

Unified 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, 5 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 d927a3fd43f5dc8eb898276fd30af8e51ae74872..7fb2106f551c7b29305c050993aaa71e59d613fd 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -120,7 +120,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: 272
+# For your editing convenience: highest ID currently used: 273
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -311,6 +311,48 @@
If this policy is left not set, this will be enabled but the user will be able to change it.''',
},
{
+ 'name': 'NetworkPredictionOptions',
+ 'type': 'int-enum',
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 0, 1, 2 ],
+ },
+ 'items': [
+ {
+ 'name': 'NetworkPredictionAlways',
+ 'value': 0,
+ 'caption': '''Predict network actions on any network connection''',
+ },
+ {
+ 'name': 'NetworkPredictionWifiOnly',
+ 'value': 1,
+ 'caption': '''Predict network actions on any network that is not
+ cellular''',
+ },
+ {
+ 'name': 'NetworkPredictionNever',
+ 'value': 2,
+ 'caption': '''Do not predict network actions on any network connection''',
+ },
+ ],
+ 'supported_on': ['chrome.*:38-', 'chrome_os:38-', 'android:38-'],
+ 'features': {
+ 'can_be_recommended': True,
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': 1,
+ 'id': 273,
+ 'caption': '''Enable network prediction''',
+ 'desc': '''Enables network prediction in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> and prevents users from changing this setting.
+
+ This controls DNS prefetching, TCP and SSL preconnection and prerendering of web pages.
+
+ If you set this preference to 'always', 'never', or 'WiFi only', users cannot change or override this setting in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>.
+
+ If this policy is left not set, network prediction will be enabled but the user will be able to change it.''',
+ },
+ {
'name': 'WPADQuickCheckEnabled',
'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