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

Side by Side Diff: chrome/app/policy/policy_templates.json

Issue 11552020: Add search_terms_replacement_key field to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments now describe a simpler behavior for the parameter. Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler.cc » ('j') | 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 # policy_templates.json - Metafile for policy templates 2 # policy_templates.json - Metafile for policy templates
3 # 3 #
4 # The content of this file is evaluated as a Python expression. 4 # The content of this file is evaluated as a Python expression.
5 # 5 #
6 # This file is used as input to generate the following policy templates: 6 # This file is used as input to generate the following policy templates:
7 # ADM, ADMX+ADML, MCX/plist and html documentation. 7 # ADM, ADMX+ADML, MCX/plist and html documentation.
8 # 8 #
9 # Policy templates are user interface definitions or documents about the 9 # Policy templates are user interface definitions or documents about the
10 # policies that can be used to configure Chrome. Each policy is a name-value 10 # policies that can be used to configure Chrome. Each policy is a name-value
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 # templates and documentation. The policy definition list that Chrome sees 105 # templates and documentation. The policy definition list that Chrome sees
106 # will include policies marked with 'future'. If a WIP policy isn't meant to 106 # will include policies marked with 'future'. If a WIP policy isn't meant to
107 # be seen by the policy providers either, the 'supported_on' key should be set 107 # be seen by the policy providers either, the 'supported_on' key should be set
108 # to an empty list. 108 # to an empty list.
109 # 109 #
110 # IDs: 110 # IDs:
111 # Since a Protocol Buffer definition is generated from this file, unique and 111 # Since a Protocol Buffer definition is generated from this file, unique and
112 # persistent IDs for all fields (but not for groups!) are needed. These are 112 # persistent IDs for all fields (but not for groups!) are needed. These are
113 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 113 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
114 # because doing so would break the deployed wire format! 114 # because doing so would break the deployed wire format!
115 # For your editing convenience: highest ID currently used: 170 115 # For your editing convenience: highest ID currently used: 171
116 # 116 #
117 # Placeholders: 117 # Placeholders:
118 # The following placeholder strings are automatically substituted: 118 # The following placeholder strings are automatically substituted:
119 # $1 -> Google Chrome / Chromium 119 # $1 -> Google Chrome / Chromium
120 # $2 -> Google Chrome OS / Chromium OS 120 # $2 -> Google Chrome OS / Chromium OS
121 # $3 -> Google Chrome Frame / Chromium Frame 121 # $3 -> Google Chrome Frame / Chromium Frame
122 # $6 is reserved for doc_writer 122 # $6 is reserved for doc_writer
123 # 123 #
124 # Device Policy: 124 # Device Policy:
125 # An additional flag device_only (optional, defaults to False) indicates 125 # An additional flag device_only (optional, defaults to False) indicates
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 }, 1785 },
1786 'example_value': ['http://search.my.company/suggest#q={searchTerms}', 'http://search.my.company/suggest/search#q={searchTerms}'], 1786 'example_value': ['http://search.my.company/suggest#q={searchTerms}', 'http://search.my.company/suggest/search#q={searchTerms}'],
1787 'id': 161, 1787 'id': 161,
1788 'caption': '''List of alternate URLs for the default search provider.' '', 1788 'caption': '''List of alternate URLs for the default search provider.' '',
1789 'desc': '''Specifies a list of alternate URLs that can be used to extr act search terms from the search engine. The URLs should contain the string <ph name="SEARCH_TERM_MARKER">'{searchTerms}'</ph>, which will be used to extract th e search terms. 1789 'desc': '''Specifies a list of alternate URLs that can be used to extr act search terms from the search engine. The URLs should contain the string <ph name="SEARCH_TERM_MARKER">'{searchTerms}'</ph>, which will be used to extract th e search terms.
1790 1790
1791 This policy is optional. If not set, no alternate urls will be used to extract search terms. 1791 This policy is optional. If not set, no alternate urls will be used to extract search terms.
1792 1792
1793 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''', 1793 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''',
1794 }, 1794 },
1795 {
1796 'name': 'DefaultSearchProviderSearchTermsReplacementKey',
1797 'type': 'string',
1798 'schema': { 'type': 'string' },
1799 'supported_on': ['chrome.*:25-', 'chrome_os:0.25-'],
1800 'features': {
1801 'dynamic_refresh': True,
1802 'per_profile': True,
1803 },
1804 'example_value': 'espv',
1805 'id': 171,
1806 'caption': '''Parameter controlling search term placement for the defa ult search provider.''',
1807 'desc': '''A parameter that, if present in the query or ref parameter of a search URL, indicates that Chrome should perform search terms replacement i n the omnibox.
1808
1809 This policy is optional. If not set, no search term replacement will b e performed.
1810
1811 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''',
1812 },
1795 ], 1813 ],
1796 }, 1814 },
1797 { 1815 {
1798 # TODO(joaodasilva): Flag these policies with 'can_be_recommended' 1816 # TODO(joaodasilva): Flag these policies with 'can_be_recommended'
1799 # after fixing http://crbug.com/106682 1817 # after fixing http://crbug.com/106682
1800 'name': 'ContentSettings', 1818 'name': 'ContentSettings',
1801 'type': 'group', 1819 'type': 'group',
1802 'caption': '''Content Settings''', 1820 'caption': '''Content Settings''',
1803 'desc': '''Content Settings allow you to specify how contents of a specifi c type (for example Cookies, Images or JavaScript) is handled.''', 1821 'desc': '''Content Settings allow you to specify how contents of a specifi c type (for example Cookies, Images or JavaScript) is handled.''',
1804 'policies': [ 1822 'policies': [
(...skipping 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3953 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 3971 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
3954 'text': 'deprecated', 3972 'text': 'deprecated',
3955 }, 3973 },
3956 'doc_recommended': { 3974 'doc_recommended': {
3957 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 3975 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
3958 'text': 'Default Settings (users can override)', 3976 'text': 'Default Settings (users can override)',
3959 }, 3977 },
3960 }, 3978 },
3961 'placeholders': [], 3979 'placeholders': [],
3962 } 3980 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698