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

Side by Side Diff: chrome/test/data/policy/policy_test_cases.json

Issue 11186002: Add a SafeSearch preference, policy and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes that got by the last patch set. Created 8 years, 1 month 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
OLDNEW
1 { 1 {
2 "-- Template --": { 2 "-- Template --": {
3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.", 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.",
4 4
5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos"], 5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos"],
6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.", 6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.",
7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.", 7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.",
8 "test_policy": "A policy dictionary that should trigger the managed banner i n the settings UI. Usually just sets the current policy.", 8 "test_policy": "A policy dictionary that should trigger the managed banner i n the settings UI. Usually just sets the current policy.",
9 "settings_pages": ["A list of settings pages where the banner should be visi ble when this policy is set."], 9 "settings_pages": ["A list of settings pages where the banner should be visi ble when this policy is set."],
10 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", 10 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.",
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 "settings_pages": ["chrome://settings-frame"], 275 "settings_pages": ["chrome://settings-frame"],
276 "pref_mappings": [ 276 "pref_mappings": [
277 { "pref": "safebrowsing.enabled", 277 { "pref": "safebrowsing.enabled",
278 "indicator_tests": [ 278 "indicator_tests": [
279 { "policy": { "SafeBrowsingEnabled": false } } 279 { "policy": { "SafeBrowsingEnabled": false } }
280 ] 280 ]
281 } 281 }
282 ] 282 ]
283 }, 283 },
284 284
285 "ForceSafeSearch": {
286 "pref": "settings.force_safesearch",
287 "test_policy": { "ForceSafeSearch": true },
288 "settings_pages": [],
289 "os": ["win", "linux", "mac", "chromeos"]
290 },
291
285 "MetricsReportingEnabled": { 292 "MetricsReportingEnabled": {
286 "os": ["win", "mac", "linux"], 293 "os": ["win", "mac", "linux"],
287 "official_only": true, 294 "official_only": true,
288 "can_be_recommended": true, 295 "can_be_recommended": true,
289 "test_policy": { "MetricsReportingEnabled": false }, 296 "test_policy": { "MetricsReportingEnabled": false },
290 "settings_pages": ["chrome://settings-frame"], 297 "settings_pages": ["chrome://settings-frame"],
291 "pref_mappings": [ 298 "pref_mappings": [
292 { "pref": "user_experience_metrics.reporting_enabled", 299 { "pref": "user_experience_metrics.reporting_enabled",
293 "local_state": true, 300 "local_state": true,
294 "indicator_tests": [ 301 "indicator_tests": [
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" }, 1741 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" },
1735 "settings_pages": [] 1742 "settings_pages": []
1736 }, 1743 },
1737 1744
1738 "AdditionalLaunchParameters": { 1745 "AdditionalLaunchParameters": {
1739 "os": [], 1746 "os": [],
1740 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, 1747 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" },
1741 "settings_pages": [] 1748 "settings_pages": []
1742 } 1749 }
1743 } 1750 }
OLDNEW
« chrome/common/url_constants.cc ('K') | « chrome/common/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698