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

Side by Side Diff: chrome/browser/search_engines/prepopulated_engines.json

Issue 11552020: Add search_terms_replacement_key field to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered PK's comments. 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is used during build to generate prepopulated_engine.h/cc. 5 // This file is used during build to generate prepopulated_engine.h/cc.
6 // For more details see tools/json_to_struct/json_to_struct.py. 6 // For more details see tools/json_to_struct/json_to_struct.py.
7 7
8 // Engine definitions. See prepopulated_engines_schema.json for the field 8 // Engine definitions. See prepopulated_engines_schema.json for the field
9 // definitions. 9 // definitions.
10 10
11 // The following unique IDs are available: 11 // The following unique IDs are available:
12 // 53, 56, 58, 60, 61, 64, 65, 66, 70, 74, 78, 79, 80, 81, 84, 86, 88, 91, 12 // 53, 56, 58, 60, 61, 64, 65, 66, 70, 74, 78, 79, 80, 81, 84, 86, 88, 91,
13 // 92, 93, 94, 95, 96, 97, 98, 99, 102+ 13 // 92, 93, 94, 95, 96, 97, 98, 99, 102+
14 // 14 //
15 // IDs > 1000 are reserved for distribution custom engines. 15 // IDs > 1000 are reserved for distribution custom engines.
16 // 16 //
17 // NOTES: 17 // NOTES:
18 // - CHANGE THE ABOVE NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad! 18 // - CHANGE THE ABOVE NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad!
19 // - Make sure you update the int_variables below as required. 19 // - Make sure you update the int_variables below as required.
20 20
21 { 21 {
22 "int_variables": { 22 "int_variables": {
23 // The following id is for UMA stats only. Please update it if you add new 23 // The following id is for UMA stats only. Please update it if you add new
24 // engines outside the current range or it will not be counted in stats. 24 // engines outside the current range or it will not be counted in stats.
25 "kMaxPrepopulatedEngineID": 101, 25 "kMaxPrepopulatedEngineID": 101,
26 26
27 // Increment this if you change the data in ways that mean users with 27 // Increment this if you change the data in ways that mean users with
28 // existing data should get a new version. 28 // existing data should get a new version.
29 "kCurrentDataVersion": 49 29 "kCurrentDataVersion": 50
30 }, 30 },
31 31
32 // The following engines are included in country lists and are added to the 32 // The following engines are included in country lists and are added to the
33 // list of search engines on the first run depending on user's country. 33 // list of search engines on the first run depending on user's country.
34 "elements": { 34 "elements": {
35 "abcsok": { 35 "abcsok": {
36 "name": "ABC S\u00f8k", 36 "name": "ABC S\u00f8k",
37 "keyword": "abcsok.no", 37 "keyword": "abcsok.no",
38 "favicon_url": "http://abcsok.no/favicon.ico", 38 "favicon_url": "http://abcsok.no/favicon.ico",
39 "search_url": "http://abcsok.no/index.html?q={searchTerms}", 39 "search_url": "http://abcsok.no/index.html?q={searchTerms}",
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 "keyword": "google.com", 848 "keyword": "google.com",
849 "favicon_url": "http://www.google.com/favicon.ico", 849 "favicon_url": "http://www.google.com/favicon.ico",
850 "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google: acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats }{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google :instantExtendedEnabledParameter}ie={inputEncoding}", 850 "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google: acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats }{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google :instantExtendedEnabledParameter}ie={inputEncoding}",
851 "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialPara meter}client=chrome&q={searchTerms}&{google:cursorPosition}sugkey={google:sugges tAPIKeyParameter}", 851 "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialPara meter}client=chrome&q={searchTerms}&{google:cursorPosition}sugkey={google:sugges tAPIKeyParameter}",
852 "instant_url": "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ} {google:instantEnabledParameter}{google:instantExtendedEnabledParameter}ie={inpu tEncoding}", 852 "instant_url": "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ} {google:instantEnabledParameter}{google:instantExtendedEnabledParameter}ie={inpu tEncoding}",
853 "alternate_urls": [ 853 "alternate_urls": [
854 "{google:baseURL}#q={searchTerms}", 854 "{google:baseURL}#q={searchTerms}",
855 "{google:baseURL}search#q={searchTerms}", 855 "{google:baseURL}search#q={searchTerms}",
856 "{google:baseURL}webhp#q={searchTerms}" 856 "{google:baseURL}webhp#q={searchTerms}"
857 ], 857 ],
858 "search_terms_replacement_key": "{google:instantExtendedEnabledKey}",
858 "type": "SEARCH_ENGINE_GOOGLE", 859 "type": "SEARCH_ENGINE_GOOGLE",
859 "id": 1 860 "id": 1
860 }, 861 },
861 862
862 "guruji": { 863 "guruji": {
863 "name": "guruji", 864 "name": "guruji",
864 "keyword": "guruji.com", 865 "keyword": "guruji.com",
865 "favicon_url": "http://guruji.com/favicon.ico", 866 "favicon_url": "http://guruji.com/favicon.ico",
866 "search_url": "http://guruji.com/search?q={searchTerms}", 867 "search_url": "http://guruji.com/search?q={searchTerms}",
867 "id": 38 868 "id": 38
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 "name": "Yandex", 1716 "name": "Yandex",
1716 "keyword": "yandex.com.tr", 1717 "keyword": "yandex.com.tr",
1717 "favicon_url": "http://yandex.com.tr/favicon.ico", 1718 "favicon_url": "http://yandex.com.tr/favicon.ico",
1718 "search_url": "http://yandex.com.tr/yandsearch?text={searchTerms}", 1719 "search_url": "http://yandex.com.tr/yandsearch?text={searchTerms}",
1719 "suggest_url": "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms }", 1720 "suggest_url": "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms }",
1720 "type": "SEARCH_ENGINE_YANDEX", 1721 "type": "SEARCH_ENGINE_YANDEX",
1721 "id": 15 1722 "id": 15
1722 } 1723 }
1723 } 1724 }
1724 } 1725 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698