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

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

Issue 312673006: Added a policy to control the visibility of the apps shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed remaining nits Created 6 years, 6 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 | 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. 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 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 }, 1362 },
1363 1363
1364 "EditBookmarksEnabled": { 1364 "EditBookmarksEnabled": {
1365 "os": ["win", "linux", "mac", "chromeos"], 1365 "os": ["win", "linux", "mac", "chromeos"],
1366 "test_policy": { "EditBookmarksEnabled": false }, 1366 "test_policy": { "EditBookmarksEnabled": false },
1367 "pref_mappings": [ 1367 "pref_mappings": [
1368 { "pref": "bookmarks.editing_enabled" } 1368 { "pref": "bookmarks.editing_enabled" }
1369 ] 1369 ]
1370 }, 1370 },
1371 1371
1372 "ShowAppsShortcutInBookmarkBar": {
1373 "os": ["win", "linux", "mac"],
1374 "test_policy": { "ShowAppsShortcutInBookmarkBar": false },
1375 "pref_mappings": [
1376 { "pref": "bookmark_bar.show_apps_shortcut" }
1377 ]
1378 },
1379
1372 "AllowFileSelectionDialogs": { 1380 "AllowFileSelectionDialogs": {
1373 "os": ["win", "mac", "linux"], 1381 "os": ["win", "mac", "linux"],
1374 "test_policy": { "AllowFileSelectionDialogs": false }, 1382 "test_policy": { "AllowFileSelectionDialogs": false },
1375 "pref_mappings": [ 1383 "pref_mappings": [
1376 { "pref": "select_file_dialogs.allowed", 1384 { "pref": "select_file_dialogs.allowed",
1377 "local_state": true 1385 "local_state": true
1378 }, 1386 },
1379 { "pref": "download.prompt_for_download", 1387 { "pref": "download.prompt_for_download",
1380 "indicator_tests": [ 1388 "indicator_tests": [
1381 { "policy": { "AllowFileSelectionDialogs": false } } 1389 { "policy": { "AllowFileSelectionDialogs": false } }
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
2294 2302
2295 "AdditionalLaunchParameters": { 2303 "AdditionalLaunchParameters": {
2296 }, 2304 },
2297 2305
2298 "SuppressChromeFrameTurndownPrompt": { 2306 "SuppressChromeFrameTurndownPrompt": {
2299 }, 2307 },
2300 2308
2301 "SkipMetadataCheck": { 2309 "SkipMetadataCheck": {
2302 } 2310 }
2303 } 2311 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698