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

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: 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
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index 47f26f60d38f5d3c239b46bb5e8370fba5fbee04..d5a0e2f7caf2995fb00ea4f29586ba422fb9c736 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -311,6 +311,53 @@
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, 3 ],
+ },
+ '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''',
+ },
+ {
+ 'name': 'NetworkPredictionUnset',
+ 'value': 3,
+ 'caption': '''Preference value has not been set''',
Joao da Silva 2014/07/30 07:57:32 This value is not needed in the policy, since it's
Bence 2014/07/30 13:19:31 Done.
+ },
+ ],
+ 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'android:30-'],
Joao da Silva 2014/07/30 07:57:32 The version should be 38
Bence 2014/07/30 13:19:31 Done. What are the current/upcoming chrome_os and
Joao da Silva 2014/07/30 13:33:32 Same version, they should all be 38.
Bence 2014/07/31 20:41:11 Done.
+ 'features': {
+ 'can_be_recommended': True,
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': True,
Joao da Silva 2014/07/30 07:57:32 The example value should be one of the int values
Bence 2014/07/30 13:19:31 Done.
+ 'id': 271,
+ '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' },

Powered by Google App Engine
This is Rietveld 408576698