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

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

Issue 595363002: Add policy controlled permission block list for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-fix
Patch Set: more minor format fix Created 6 years, 2 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 "pref_mappings": [ 697 "pref_mappings": [
698 { "pref": "extensions.allowed_types" } 698 { "pref": "extensions.allowed_types" }
699 ] 699 ]
700 }, 700 },
701 701
702 "ExtensionSettings": { 702 "ExtensionSettings": {
703 "os": ["win", "linux", "mac", "chromeos"], 703 "os": ["win", "linux", "mac", "chromeos"],
704 "test_policy": { 704 "test_policy": {
705 "ExtensionSettings": { 705 "ExtensionSettings": {
706 "abcdefghijklmnopabcdefghijklmnop" : { 706 "abcdefghijklmnopabcdefghijklmnop" : {
707 "installation_mode": "allowed" 707 "installation_mode": "allowed",
708 "blocked_permissions": ["history"]
708 }, 709 },
709 "bcdefghijklmnopabcdefghijklmnopa" : { 710 "bcdefghijklmnopabcdefghijklmnopa" : {
710 "installation_mode": "force_installed", 711 "installation_mode": "force_installed",
711 "update_url": "http://example.com/update_url" 712 "update_url": "http://example.com/update_url",
713 "allowed_permissions": ["downloads"]
712 }, 714 },
713 "*": { 715 "*": {
714 "installation_mode": "blocked", 716 "installation_mode": "blocked",
717 "blocked_permissions": ["downloads", "bookmarks"],
715 "install_sources": ["http://company-intranet/chromeapps"], 718 "install_sources": ["http://company-intranet/chromeapps"],
716 "allowed_types": ["hosted_app"] 719 "allowed_types": ["hosted_app"]
717 } 720 }
718 } 721 }
719 }, 722 },
720 "pref_mappings": [ 723 "pref_mappings": [
721 { "pref": "extensions.management" } 724 { "pref": "extensions.management" }
722 ] 725 ]
723 }, 726 },
724 727
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after
2417 2420
2418 "AdditionalLaunchParameters": { 2421 "AdditionalLaunchParameters": {
2419 }, 2422 },
2420 2423
2421 "SuppressChromeFrameTurndownPrompt": { 2424 "SuppressChromeFrameTurndownPrompt": {
2422 }, 2425 },
2423 2426
2424 "SkipMetadataCheck": { 2427 "SkipMetadataCheck": {
2425 } 2428 }
2426 } 2429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698