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

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

Issue 11377049: Moving prepopulated search engines to a JSON file. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Answered review comments. Created 8 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // GENERATED FROM THE SCHEMA DEFINITION AND CONTENT IN
6 // chrome/browser/search_engines/prepopulated_engines_schema.json
7 // chrome/browser/search_engines/prepopulated_engines.json
8 // DO NOT EDIT.
9
10 #include <stdio.h>
11
12 #include "chrome/browser/search_engines/prepopulated_engines.h"
13
14 namespace TemplateURLPrepopulateData {
15
16 const int kCurrentDataVersion = 45;
17
18 const PrepopulatedEngine google = {
19 L"Google",
20 L"google.com",
21 "http://www.google.com/favicon.ico",
22 "{google:baseURL}search?q={searchTerms}&{google:RLZ} {google:acceptedSuggestio n}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFi eldtrialParameter}sourceid=chrome&ie={inputEncoding}",
23 "UTF-8",
24 "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client=chrome &hl={language}&q={searchTerms}&sugkey={google:suggestAPIKeyParameter}",
25 "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}{google:instantEnab ledParameter}ie={inputEncoding}",
26 "[\"{google:baseURL}#q={searchTerms}\", \"{google:baseURL}search#q={searchTerm s}\", \"{google:baseURL}webhp#q={searchTerms}\"]",
27 SEARCH_ENGINE_GOOGLE,
28 1,
29 };
30
31 const PrepopulatedEngine altavista = {
32 L"AltaVista",
33 L"altavista.com",
34 "http://www.altavista.com/favicon.ico",
35 "http://www.altavista.com/web/results?q={searchTerms}",
36 "UTF-8",
37 NULL,
38 NULL,
39 NULL,
40 SEARCH_ENGINE_ALTAVISTA,
41 89,
42 };
43
44 const PrepopulatedEngine abcsok = {
45 L"ABC S\x00f8k",
46 L"abcsok.no",
47 "http://abcsok.no/favicon.ico",
48 "http://abcsok.no/index.html?q={searchTerms}",
49 "UTF-8",
50 NULL,
51 NULL,
52 NULL,
53 SEARCH_ENGINE_ABCSOK,
54 72,
55 };
56
57 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698