diff options
author | jnd@chromium.org <jnd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 23:02:05 +0000 |
---|---|---|
committer | jnd@chromium.org <jnd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 23:02:05 +0000 |
commit | 39682d17faa74c02c75b6e6d3b73421c32ab57f0 (patch) | |
tree | 28b5a793c363844356462371b795f5ed16818723 /chrome/app/policy | |
parent | 285301c7ecf9cc640921ea6066329ff99d8175c3 (diff) | |
download | chromium_src-39682d17faa74c02c75b6e6d3b73421c32ab57f0.zip chromium_src-39682d17faa74c02c75b6e6d3b73421c32ab57f0.tar.gz chromium_src-39682d17faa74c02c75b6e6d3b73421c32ab57f0.tar.bz2 |
Save image search URLs and post parameters of all search URLs into perf, web_data/keywords and policy.
This is second patch after landing http://crrev.com/211299.
BUG=89945
TEST=unit_tests
Review URL: https://chromiumcodereview.appspot.com/19703003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214850 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/policy')
-rw-r--r-- | chrome/app/policy/policy_templates.json | 92 |
1 files changed, 91 insertions, 1 deletions
diff --git a/chrome/app/policy/policy_templates.json b/chrome/app/policy/policy_templates.json index cd70fd2..93ef3fa 100644 --- a/chrome/app/policy/policy_templates.json +++ b/chrome/app/policy/policy_templates.json @@ -112,7 +112,7 @@ # persistent IDs for all fields (but not for groups!) are needed. These are # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, # because doing so would break the deployed wire format! -# For your editing convenience: highest ID currently used: 228 +# For your editing convenience: highest ID currently used: 233 # # Placeholders: # The following placeholder strings are automatically substituted: @@ -1848,6 +1848,96 @@ This policy is only respected if the 'DefaultSearchProviderEnabled' policy is enabled.''', }, + { + 'name': 'DefaultSearchProviderImageURL', + 'type': 'string', + 'schema': { 'type': 'string' }, + 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-', 'android:30-'], + 'features': { + 'dynamic_refresh': True, + 'per_profile': True, + }, + 'example_value': 'http://search.my.company/searchbyimage/upload', + 'id': 229, + 'caption': '''Parameter providing search-by-image feature for the default search provider''', + 'desc': '''Specifies the URL of the search engine used to provide image search. Search requests will be sent using the GET method. If the DefaultSearchProviderImageURLPostParams policy is set then image search requests will use the POST method instead. + + This policy is optional. If not set, no image search will be used. + + This policy is only respected if the 'DefaultSearchProviderEnabled' policy is enabled.''', + }, + { + 'name': 'DefaultSearchProviderSearchURLPostParams', + 'type': 'string', + 'schema': { 'type': 'string' }, + 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-', 'android:30-'], + 'features': { + 'dynamic_refresh': True, + 'per_profile': True, + }, + 'example_value': 'q={searchTerms},ie=utf-8,oe=utf-8', + 'id': 230, + 'caption': '''Parameters for search URL which uses POST''', + 'desc': '''Specifies the parameters used when searching a URL with POST. It consists of comma-separated name/value pairs. If a value is a template parameter, like {searchTerms} in above example, it will be replaced with real search terms data. + + This policy is optional. If not set, search request will be sent using the GET method. + + This policy is only respected if the 'DefaultSearchProviderEnabled' policy is enabled.''', + }, + { + 'name': 'DefaultSearchProviderSuggestURLPostParams', + 'type': 'string', + 'schema': { 'type': 'string' }, + 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-', 'android:30-'], + 'features': { + 'dynamic_refresh': True, + 'per_profile': True, + }, + 'example_value': 'q={searchTerms},ie=utf-8,oe=utf-8', + 'id': 231, + 'caption': '''Parameters for suggest URL which uses POST''', + 'desc': '''Specifies the parameters used when doing suggestion search with POST. It consists of comma-separated name/value pairs. If a value is a template parameter, like {searchTerms} in above example, it will be replaced with real search terms data. + + This policy is optional. If not set, suggest search request will be sent using the GET method. + + This policy is only respected if the 'DefaultSearchProviderEnabled' policy is enabled.''', + }, + { + 'name': 'DefaultSearchProviderInstantURLPostParams', + 'type': 'string', + 'schema': { 'type': 'string' }, + 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-', 'android:30-'], + 'features': { + 'dynamic_refresh': True, + 'per_profile': True, + }, + 'example_value': 'q={searchTerms},ie=utf-8,oe=utf-8', + 'id': 232, + 'caption': '''Parameters for instant URL which uses POST''', + 'desc': '''Specifies the parameters used when doing instant search with POST. It consists of comma-separated name/value pairs. If a value is a template parameter, like {searchTerms} in above example, it will be replaced with real search terms data. + + This policy is optional. If not set, instant search request will be sent using the GET method. + + This policy is only respected if the 'DefaultSearchProviderEnabled' policy is enabled.''', + }, + { + 'name': 'DefaultSearchProviderImageURLPostParams', + 'type': 'string', + 'schema': { 'type': 'string' }, + 'supported_on': ['chrome.*:29-', 'chrome_os:0.29-', 'android:30-'], + 'features': { + 'dynamic_refresh': True, + 'per_profile': True, + }, + 'example_value': 'content={imageThumbnail},url={imageURL},sbisrc={SearchSource}', + 'id': 233, + 'caption': '''Parameters for image URL which uses POST''', + 'desc': '''Specifies the parameters used when doing image search with POST. It consists of comma-separated name/value pairs. If a value is a template parameter, like {imageThumbnail} in above example, it will be replaced with real image thumbnail data. + + This policy is optional. If not set, image search request will be sent using the GET method. + + This policy is only respected if the 'DefaultSearchProviderEnabled' policy is enabled.''', + }, ], }, { |