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

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

Issue 2239753002: Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyMode policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inc'ed id of new policy to 346 Created 4 years, 3 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
OLDNEW
1 { 1 {
2 "-- Template --": { 2 "-- Template --": {
3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below. The name of the top level entry should be of the form <policy name>[. suffix]. The optional suffix is used for defining multiple test cases for a sing le policy.", 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below. The name of the top level entry should be of the form <policy name>[. suffix]. The optional suffix is used for defining multiple test cases for a sing le policy.",
4 4
5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "Defaults to empty if not specified."], 5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "Defaults to empty if not specified."],
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 make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.", 8 "test_policy": "A policy dictionary that should make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.",
9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", 9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.",
10 "pref_mappings": [ 10 "pref_mappings": [
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 "os": ["win", "linux", "mac", "chromeos"] 306 "os": ["win", "linux", "mac", "chromeos"]
307 }, 307 },
308 308
309 "ForceYouTubeSafetyMode": { 309 "ForceYouTubeSafetyMode": {
310 "pref": "settings.force_youtube_safety_mode", 310 "pref": "settings.force_youtube_safety_mode",
311 "test_policy": { "ForceYouTubeSafetyMode": true }, 311 "test_policy": { "ForceYouTubeSafetyMode": true },
312 "settings_pages": [], 312 "settings_pages": [],
313 "os": ["win", "linux", "mac", "chromeos"] 313 "os": ["win", "linux", "mac", "chromeos"]
314 }, 314 },
315 315
316 "ForceYouTubeRestrict": {
317 "pref": "settings.force_youtube_restrict",
318 "test_policy": { "ForceYouTubeRestrict": 1 },
319 "settings_pages": [],
320 "os": ["win", "linux", "mac", "chromeos"]
Marc Treib 2016/09/05 09:58:11 Isn't Android supported too? (Also applies to the
ljusten (tachyonic) 2016/09/05 15:24:32 Done.
321 },
322
316 "MetricsReportingEnabled": { 323 "MetricsReportingEnabled": {
317 "os": ["win", "mac", "linux"], 324 "os": ["win", "mac", "linux"],
318 "official_only": true, 325 "official_only": true,
319 "can_be_recommended": true, 326 "can_be_recommended": true,
320 "test_policy": { "MetricsReportingEnabled": false }, 327 "test_policy": { "MetricsReportingEnabled": false },
321 "indicator_selector": "#metrics-reporting-disabled-icon", 328 "indicator_selector": "#metrics-reporting-disabled-icon",
322 "pref_mappings": [ 329 "pref_mappings": [
323 { "pref": "user_experience_metrics.reporting_enabled", 330 { "pref": "user_experience_metrics.reporting_enabled",
324 "local_state": true 331 "local_state": true
325 } 332 }
(...skipping 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 2892
2886 "AdditionalLaunchParameters": { 2893 "AdditionalLaunchParameters": {
2887 }, 2894 },
2888 2895
2889 "SuppressChromeFrameTurndownPrompt": { 2896 "SuppressChromeFrameTurndownPrompt": {
2890 }, 2897 },
2891 2898
2892 "SkipMetadataCheck": { 2899 "SkipMetadataCheck": {
2893 } 2900 }
2894 } 2901 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698