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

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

Issue 11552020: Add search_terms_replacement_key field to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed logic to check search_terms_replacement_key in template_url.cc. This is for a next CL. Created 8 years 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", "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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 }, 770 },
771 771
772 "DefaultSearchProviderAlternateURLs": { 772 "DefaultSearchProviderAlternateURLs": {
773 "os": ["win", "linux", "mac", "chromeos"], 773 "os": ["win", "linux", "mac", "chromeos"],
774 "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q ={searchTerms}", "DefaultSearchProviderAlternateURLs": ["http://www.google.com/# q={searchTerms}", "http://www.google.com/search#q={searchTerms}"] }, 774 "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q ={searchTerms}", "DefaultSearchProviderAlternateURLs": ["http://www.google.com/# q={searchTerms}", "http://www.google.com/search#q={searchTerms}"] },
775 "pref_mappings": [ 775 "pref_mappings": [
776 { "pref": "default_search_provider.alternate_urls" } 776 { "pref": "default_search_provider.alternate_urls" }
777 ] 777 ]
778 }, 778 },
779 779
780 "DefaultSearchProviderSearchTermsReplacementKey": {
781 "os": ["win", "linux", "mac", "chromeos"],
782 "test_policy": { "DefaultSearchProviderSearchURL": "http://www.google.com/?q ={searchTerms}", "DefaultSearchProviderSearchTermsReplacementKey": "espv" },
783 "pref_mappings": [
784 { "pref": "default_search_provider.search_terms_replacement_key" }
785 ]
786 },
787
780 "DefaultCookiesSetting": { 788 "DefaultCookiesSetting": {
781 "os": ["win", "linux", "mac", "chromeos"], 789 "os": ["win", "linux", "mac", "chromeos"],
782 "test_policy": { "DefaultCookiesSetting": 2 }, 790 "test_policy": { "DefaultCookiesSetting": 2 },
783 "pref_mappings": [ 791 "pref_mappings": [
784 { "pref": "profile.managed_default_content_settings.cookies", 792 { "pref": "profile.managed_default_content_settings.cookies",
785 "indicator_selector": "[content-setting=cookies]", 793 "indicator_selector": "[content-setting=cookies]",
786 "indicator_tests": [ 794 "indicator_tests": [
787 { "policy": { "DefaultCookiesSetting": 1 }, 795 { "policy": { "DefaultCookiesSetting": 1 },
788 "value": "allow"}, 796 "value": "allow"},
789 { "policy": { "DefaultCookiesSetting": 2 }, 797 { "policy": { "DefaultCookiesSetting": 2 },
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 1664
1657 "ChromeFrameContentTypes": { 1665 "ChromeFrameContentTypes": {
1658 }, 1666 },
1659 1667
1660 "GCFUserDataDir": { 1668 "GCFUserDataDir": {
1661 }, 1669 },
1662 1670
1663 "AdditionalLaunchParameters": { 1671 "AdditionalLaunchParameters": {
1664 } 1672 }
1665 } 1673 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698