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

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

Issue 11232046: Add fifth batch of controlled setting indicators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactored on top of new CL 11232059, removing the need for any JS changes. 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
« no previous file with comments | « chrome/browser/resources/options/import_data_overlay.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 "os": ["win", "linux", "mac", "chromeos"], 1250 "os": ["win", "linux", "mac", "chromeos"],
1251 "test_policy": { "Disable3DAPIs": true }, 1251 "test_policy": { "Disable3DAPIs": true },
1252 "settings_pages": [], 1252 "settings_pages": [],
1253 "pref_mappings": [ 1253 "pref_mappings": [
1254 { "pref": "disable_3d_apis" } 1254 { "pref": "disable_3d_apis" }
1255 ] 1255 ]
1256 }, 1256 },
1257 1257
1258 "InstantEnabled": { 1258 "InstantEnabled": {
1259 "os": ["win", "linux", "mac", "chromeos"], 1259 "os": ["win", "linux", "mac", "chromeos"],
1260 "can_be_recommended": true,
1260 "test_policy": { "InstantEnabled": true }, 1261 "test_policy": { "InstantEnabled": true },
1261 "settings_pages": ["chrome://settings-frame"], 1262 "settings_pages": ["chrome://settings-frame"],
1262 "pref_mappings": [ 1263 "pref_mappings": [
1263 { "pref": "instant.enabled" } 1264 { "pref": "instant.enabled",
1265 "indicator_tests": [
1266 { "policy": { "InstantEnabled": true } }
1267 ]
1268 }
1264 ] 1269 ]
1265 }, 1270 },
1266 1271
1267 "TranslateEnabled": { 1272 "TranslateEnabled": {
1268 "os": ["win", "linux", "mac", "chromeos"], 1273 "os": ["win", "linux", "mac", "chromeos"],
1274 "can_be_recommended": true,
1269 "test_policy": { "TranslateEnabled": false }, 1275 "test_policy": { "TranslateEnabled": false },
1270 "settings_pages": ["chrome://settings-frame"], 1276 "settings_pages": ["chrome://settings-frame"],
1271 "pref_mappings": [ 1277 "pref_mappings": [
1272 { "pref": "translate.enabled" } 1278 { "pref": "translate.enabled",
1279 "indicator_tests": [
1280 { "policy": { "TranslateEnabled": true } }
1281 ]
1282 }
1273 ] 1283 ]
1274 }, 1284 },
1275 1285
1276 "AllowOutdatedPlugins": { 1286 "AllowOutdatedPlugins": {
1277 "os": ["win", "linux", "mac", "chromeos"], 1287 "os": ["win", "linux", "mac", "chromeos"],
1278 "test_policy": { "AllowOutdatedPlugins": true }, 1288 "test_policy": { "AllowOutdatedPlugins": true },
1279 "settings_pages": [], 1289 "settings_pages": [],
1280 "pref_mappings": [ 1290 "pref_mappings": [
1281 { "pref": "plugins.allow_outdated" } 1291 { "pref": "plugins.allow_outdated" }
1282 ] 1292 ]
1283 }, 1293 },
1284 1294
1285 "AlwaysAuthorizePlugins": { 1295 "AlwaysAuthorizePlugins": {
1286 "os": ["win", "linux", "mac", "chromeos"], 1296 "os": ["win", "linux", "mac", "chromeos"],
1287 "test_policy": { "AlwaysAuthorizePlugins": true }, 1297 "test_policy": { "AlwaysAuthorizePlugins": true },
1288 "settings_pages": [], 1298 "settings_pages": [],
1289 "pref_mappings": [ 1299 "pref_mappings": [
1290 { "pref": "plugins.always_authorize" } 1300 { "pref": "plugins.always_authorize" }
1291 ] 1301 ]
1292 }, 1302 },
1293 1303
1294 "BookmarkBarEnabled": { 1304 "BookmarkBarEnabled": {
1295 "os": ["win", "linux", "mac", "chromeos"], 1305 "os": ["win", "linux", "mac", "chromeos"],
1306 "can_be_recommended": true,
1296 "test_policy": { "BookmarkBarEnabled": true }, 1307 "test_policy": { "BookmarkBarEnabled": true },
1297 "settings_pages": ["chrome://settings-frame"], 1308 "settings_pages": ["chrome://settings-frame"],
1298 "pref_mappings": [ 1309 "pref_mappings": [
1299 { "pref": "bookmark_bar.show_on_all_tabs" } 1310 { "pref": "bookmark_bar.show_on_all_tabs",
1311 "indicator_tests": [
1312 { "policy": { "BookmarkBarEnabled": true } }
1313 ]
1314 }
1300 ] 1315 ]
1301 }, 1316 },
1302 1317
1303 "EditBookmarksEnabled": { 1318 "EditBookmarksEnabled": {
1304 "os": ["win", "linux", "mac", "chromeos"], 1319 "os": ["win", "linux", "mac", "chromeos"],
1305 "test_policy": { "EditBookmarksEnabled": false }, 1320 "test_policy": { "EditBookmarksEnabled": false },
1306 "settings_pages": [], 1321 "settings_pages": [],
1307 "pref_mappings": [ 1322 "pref_mappings": [
1308 { "pref": "bookmarks.editing_enabled" } 1323 { "pref": "bookmarks.editing_enabled" }
1309 ] 1324 ]
1310 }, 1325 },
1311 1326
1312 "AllowFileSelectionDialogs": { 1327 "AllowFileSelectionDialogs": {
1313 "os": ["win", "mac", "linux"], 1328 "os": ["win", "mac", "linux"],
1314 "test_policy": { "AllowFileSelectionDialogs": false }, 1329 "test_policy": { "AllowFileSelectionDialogs": false },
1315 "settings_pages": ["chrome://settings-frame"], 1330 "settings_pages": ["chrome://settings-frame"],
1316 "pref_mappings": [ 1331 "pref_mappings": [
1317 { "pref": "select_file_dialogs.allowed", 1332 { "pref": "select_file_dialogs.allowed",
1318 "local_state": true 1333 "local_state": true
1334 },
1335 { "pref": "download.prompt_for_download",
1336 "indicator_tests": [
1337 { "policy": { "AllowFileSelectionDialogs": false } }
1338 ]
1319 } 1339 }
1320 ] 1340 ]
1321 }, 1341 },
1322 1342
1323 "ImportBookmarks": { 1343 "ImportBookmarks": {
1324 "os": ["win", "mac", "linux"], 1344 "os": ["win", "mac", "linux"],
1345 "can_be_recommended": true,
1325 "test_policy": { "ImportBookmarks": false }, 1346 "test_policy": { "ImportBookmarks": false },
1326 "settings_pages": [], 1347 "settings_pages": [],
1327 "pref_mappings": [ 1348 "pref_mappings": [
1328 { "pref": "import_bookmarks" } 1349 { "pref": "import_bookmarks",
1350 "indicator_tests": [
1351 { "policy": { "ImportBookmarks": false } }
1352 ]
1353 }
1329 ] 1354 ]
1330 }, 1355 },
1331 1356
1332 "ImportHistory": { 1357 "ImportHistory": {
1333 "os": ["win", "mac", "linux"], 1358 "os": ["win", "mac", "linux"],
1359 "can_be_recommended": true,
1334 "test_policy": { "ImportHistory": false }, 1360 "test_policy": { "ImportHistory": false },
1335 "settings_pages": [], 1361 "settings_pages": [],
1336 "pref_mappings": [ 1362 "pref_mappings": [
1337 { "pref": "import_history" } 1363 { "pref": "import_history",
1364 "indicator_tests": [
1365 { "policy": { "ImportHistory": false } }
1366 ]
1367 }
1338 ] 1368 ]
1339 }, 1369 },
1340 1370
1341 "ImportHomepage": { 1371 "ImportHomepage": {
1342 "os": ["win", "mac", "linux"], 1372 "os": ["win", "mac", "linux"],
1343 "test_policy": { "ImportHomepage": false }, 1373 "test_policy": { "ImportHomepage": false },
1344 "settings_pages": [], 1374 "settings_pages": [],
1345 "pref_mappings": [ 1375 "pref_mappings": [
1346 { "pref": "import_home_page" } 1376 { "pref": "import_home_page" }
1347 ] 1377 ]
1348 }, 1378 },
1349 1379
1350 "ImportSearchEngine": { 1380 "ImportSearchEngine": {
1351 "os": ["win", "mac", "linux"], 1381 "os": ["win", "mac", "linux"],
1382 "can_be_recommended": true,
1352 "test_policy": { "ImportSearchEngine": false }, 1383 "test_policy": { "ImportSearchEngine": false },
1353 "settings_pages": [], 1384 "settings_pages": [],
1354 "pref_mappings": [ 1385 "pref_mappings": [
1355 { "pref": "import_search_engine" } 1386 { "pref": "import_search_engine",
1387 "indicator_tests": [
1388 { "policy": { "ImportSearchEngine": false } }
1389 ]
1390 }
1356 ] 1391 ]
1357 }, 1392 },
1358 1393
1359 "ImportSavedPasswords": { 1394 "ImportSavedPasswords": {
1360 "os": ["win", "mac", "linux"], 1395 "os": ["win", "mac", "linux"],
1396 "can_be_recommended": true,
1361 "test_policy": { "ImportSavedPasswords": false }, 1397 "test_policy": { "ImportSavedPasswords": false },
1362 "settings_pages": [], 1398 "settings_pages": [],
1363 "pref_mappings": [ 1399 "pref_mappings": [
1364 { "pref": "import_saved_passwords" } 1400 { "pref": "import_saved_passwords",
1401 "indicator_tests": [
1402 { "policy": { "ImportSavedPasswords": false } }
1403 ]
1404 }
1365 ] 1405 ]
1366 }, 1406 },
1367 1407
1368 "MaxConnectionsPerProxy": { 1408 "MaxConnectionsPerProxy": {
1369 "os": ["win", "linux", "mac", "chromeos"], 1409 "os": ["win", "linux", "mac", "chromeos"],
1370 "test_policy": { "MaxConnectionsPerProxy": 16 }, 1410 "test_policy": { "MaxConnectionsPerProxy": 16 },
1371 "settings_pages": [], 1411 "settings_pages": [],
1372 "pref_mappings": [ 1412 "pref_mappings": [
1373 { "pref": "net.max_connections_per_proxy", 1413 { "pref": "net.max_connections_per_proxy",
1374 "local_state": true 1414 "local_state": true
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 "os": ["win", "mac", "linux"], 1471 "os": ["win", "mac", "linux"],
1432 "test_policy": { "DisablePrintPreview": false }, 1472 "test_policy": { "DisablePrintPreview": false },
1433 "settings_pages": [], 1473 "settings_pages": [],
1434 "pref_mappings": [ 1474 "pref_mappings": [
1435 { "pref": "printing.print_preview_disabled" } 1475 { "pref": "printing.print_preview_disabled" }
1436 ] 1476 ]
1437 }, 1477 },
1438 1478
1439 "BackgroundModeEnabled": { 1479 "BackgroundModeEnabled": {
1440 "os": ["win", "linux"], 1480 "os": ["win", "linux"],
1481 "can_be_recommended": true,
1441 "test_policy": { "BackgroundModeEnabled": false }, 1482 "test_policy": { "BackgroundModeEnabled": false },
1442 "settings_pages": ["chrome://settings-frame"], 1483 "settings_pages": ["chrome://settings-frame"],
1443 "pref_mappings": [ 1484 "pref_mappings": [
1444 { "pref": "background_mode.enabled", 1485 { "pref": "background_mode.enabled",
1445 "local_state": true 1486 "local_state": true,
1487 "indicator_tests": [
1488 { "policy": { "BackgroundModeEnabled": false } }
1489 ]
1446 } 1490 }
1447 ] 1491 ]
1448 }, 1492 },
1449 1493
1450 "RestrictSigninToPattern": { 1494 "RestrictSigninToPattern": {
1451 "os": ["win", "mac", "linux"], 1495 "os": ["win", "mac", "linux"],
1452 "test_policy": { "RestrictSigninToPattern": ".*@google.com" }, 1496 "test_policy": { "RestrictSigninToPattern": ".*@google.com" },
1453 "settings_pages": [], 1497 "settings_pages": [],
1454 "pref_mappings": [ 1498 "pref_mappings": [
1455 { "pref": "google.services.username_pattern", 1499 { "pref": "google.services.username_pattern",
1456 "local_state": true 1500 "local_state": true
1457 } 1501 }
1458 ] 1502 ]
1459 }, 1503 },
1460 1504
1461 "DisableSafeBrowsingProceedAnyway": { 1505 "DisableSafeBrowsingProceedAnyway": {
1462 "os": ["win", "linux", "mac", "chromeos"], 1506 "os": ["win", "linux", "mac", "chromeos"],
1463 "test_policy": { "DisableSafeBrowsingProceedAnyway": true }, 1507 "test_policy": { "DisableSafeBrowsingProceedAnyway": true },
1464 "settings_pages": [], 1508 "settings_pages": [],
1465 "pref_mappings": [ 1509 "pref_mappings": [
1466 { "pref": "safebrowsing.proceed_anyway_disabled" } 1510 { "pref": "safebrowsing.proceed_anyway_disabled" }
1467 ] 1511 ]
1468 }, 1512 },
1469 1513
1470 "SpellCheckServiceEnabled": { 1514 "SpellCheckServiceEnabled": {
1471 "os": ["win", "linux", "mac", "chromeos"], 1515 "os": ["win", "linux", "mac", "chromeos"],
1472 "official_only": true, 1516 "official_only": true,
1517 "can_be_recommended": true,
1473 "test_policy": { "SpellCheckServiceEnabled": false }, 1518 "test_policy": { "SpellCheckServiceEnabled": false },
1474 "settings_pages": ["chrome://settings-frame"], 1519 "settings_pages": ["chrome://settings-frame"],
1475 "pref_mappings": [ 1520 "pref_mappings": [
1476 { "pref": "spellcheck.use_spelling_service" } 1521 { "pref": "spellcheck.use_spelling_service",
1522 "indicator_tests": [
1523 { "policy": { "SpellCheckServiceEnabled": false } }
1524 ]
1525 }
1477 ] 1526 ]
1478 }, 1527 },
1479 1528
1480 "DisableScreenshots": { 1529 "DisableScreenshots": {
1481 "os": ["win", "linux", "mac", "chromeos"], 1530 "os": ["win", "linux", "mac", "chromeos"],
1482 "test_policy": { "DisableScreenshots": true }, 1531 "test_policy": { "DisableScreenshots": true },
1483 "settings_pages": [], 1532 "settings_pages": [],
1484 "pref_mappings": [ 1533 "pref_mappings": [
1485 { "pref": "disable_screenshots" } 1534 { "pref": "disable_screenshots" }
1486 ] 1535 ]
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" }, 1783 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" },
1735 "settings_pages": [] 1784 "settings_pages": []
1736 }, 1785 },
1737 1786
1738 "AdditionalLaunchParameters": { 1787 "AdditionalLaunchParameters": {
1739 "os": [], 1788 "os": [],
1740 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, 1789 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" },
1741 "settings_pages": [] 1790 "settings_pages": []
1742 } 1791 }
1743 } 1792 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/import_data_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698