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

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

Issue 10908226: Introduces a search term extraction mechanism working for arbitrary search providers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered code review comments. Created 8 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 | Annotate | Revision Log
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: 160 115 # For your editing convenience: highest ID currently used: 161
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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 'features': {'dynamic_refresh': True}, 1540 'features': {'dynamic_refresh': True},
1541 'example_value': ['UTF-8', 'UTF-16', 'GB2312', 'ISO-8859-1'], 1541 'example_value': ['UTF-8', 'UTF-16', 'GB2312', 'ISO-8859-1'],
1542 'id': 47, 1542 'id': 47,
1543 'caption': '''Default search provider encodings''', 1543 'caption': '''Default search provider encodings''',
1544 'desc': '''Specifies the character encodings supported by the search p rovider. Encodings are code page names like UTF-8, GB2312, and ISO-8859-1. They are tried in the order provided. 1544 'desc': '''Specifies the character encodings supported by the search p rovider. Encodings are code page names like UTF-8, GB2312, and ISO-8859-1. They are tried in the order provided.
1545 1545
1546 This policy is optional. If not set, the default will be used which is UTF-8. 1546 This policy is optional. If not set, the default will be used which is UTF-8.
1547 1547
1548 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''', 1548 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''',
1549 }, 1549 },
1550 {
1551 'name': 'DefaultSearchProviderAlternateURLs',
1552 'type': 'string',
1553 'schema': { 'type': 'string' },
1554 'supported_on': ['chrome.*:10-', 'chrome_os:0.11-'],
Joao da Silva 2012/09/24 09:12:29 Update the versions to 24
beaudoin 2012/09/27 17:37:13 Done.
1555 'features': {'dynamic_refresh': True},
1556 'example_value': 'http://search.my.company/suggest?q={searchTerms},htt p://search.my.company/suggest#q={searchTerms}',
1557 'id': 161,
1558 'caption': '''Comma separated list of alternate URLs for the default s earch provider.''',
Joao da Silva 2012/09/24 09:12:29 Why not use a list policy, like DefaultSearchProvi
beaudoin 2012/09/27 17:37:13 Done.
1559 'desc': '''Specifies a list of alternate URLs that can be used to extr act search terms from the search engine. The URLs should be comma separated and should contain the string <ph name="SEARCH_TERM_MARKER">'{searchTerms}'</ph>, wh ich will be used to extract the search terms.
1560
1561 This policy is optional. If not set, no alternate urls will be used to extract search terms.
1562
1563 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''',
1564 },
1550 ], 1565 ],
1551 }, 1566 },
1552 { 1567 {
1553 # TODO(joaodasilva): Flag these policies with 'can_be_recommended' 1568 # TODO(joaodasilva): Flag these policies with 'can_be_recommended'
1554 # after fixing http://crbug.com/106682 1569 # after fixing http://crbug.com/106682
1555 'name': 'ContentSettings', 1570 'name': 'ContentSettings',
1556 'type': 'group', 1571 'type': 'group',
1557 'caption': '''Content Settings''', 1572 'caption': '''Content Settings''',
1558 'desc': '''Content Settings allow you to specify how contents of a specifi c type (for example Cookies, Images or JavaScript) is handled.''', 1573 'desc': '''Content Settings allow you to specify how contents of a specifi c type (for example Cookies, Images or JavaScript) is handled.''',
1559 'policies': [ 1574 'policies': [
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
3315 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 3330 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
3316 'text': 'deprecated', 3331 'text': 'deprecated',
3317 }, 3332 },
3318 'doc_recommended': { 3333 'doc_recommended': {
3319 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 3334 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
3320 'text': 'Recommended', 3335 'text': 'Recommended',
3321 }, 3336 },
3322 }, 3337 },
3323 'placeholders': [], 3338 'placeholders': [],
3324 } 3339 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google/google_util.h » ('j') | chrome/browser/search_engines/template_url_service_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698