Chromium 搜索引擎功能浅析c++

地址栏输入:chrome://settings/searchEngines

可以看到 有百度等数据源,那么如何调整其顺序呢,此数据又存储在哪里呢?

1、浏览器初始化搜索引擎数据来源在

components\search_engines\prepopulated_engines.json

javascript 复制代码
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file is used during build to generate prepopulated_engines.h/cc.
// For more details see tools/json_to_struct/json_to_struct.py.

// Engine definitions. See prepopulated_engines_schema.json for the field
// definitions.

// NOTES:
//   - CHANGE THE BELOW NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad!
//     - Make sure you update the int_variables below as described in comments.
//     - IDs > 1000 are reserved for distribution custom engines.
//   - NOTIFY the Chrome Webstore team if you add/delete a search engine or
//     change domain of an existing one (send email to webstore-eng@google.com).
//     They need to know the mapping between an engine's "id" and its URLs.
//   - Use HTTPS URLs when adding new search engines or adding URLs to existing
//     ones. It's not the 90s anymore.

{
  "int_variables": {
    // When adding new engines, increment this number and use it as the new
    // max ID. This is used by UMA stats and must be updated to include the full
    // range or else not all engines will be counted in stats.
    "kMaxPrepopulatedEngineID": 111,

    // Increment this if you change the data in ways that mean users with
    // existing data should get a new version. Otherwise, existing data may
    // continue to be used and updates made here will not always appear.
    // Also then run tools/search_engine_choice/generate_search_engine_icons.py.
    "kCurrentDataVersion": 145
  },

  // The following engines are included in country lists and are added to the
  // list of search engines on the first run depending on user's country.
  "elements": {
    "ask": {
      "name": "Ask",
      "keyword": "ask.com",
      "favicon_url": "https://www.ask.com/wp-content/uploads/sites/3/2021/10/ask-favicon.png",
      "search_url": "https://www.ask.com/web?q={searchTerms}",
      "suggest_url": "https://lss.sse-iacapps.com/query?q={searchTerms}&li=ff",
      "type": "SEARCH_ENGINE_ASK",
      "id": 4
    },

    "baidu": {
      "name": "\u767e\u5ea6",
      "keyword": "baidu.com",
      "favicon_url": "https://www.baidu.com/favicon.ico",
      "search_url": "https://www.baidu.com/#ie={inputEncoding}&wd={searchTerms}",
      "alternate_urls": [
        "https://www.baidu.com/s?ie={inputEncoding}&wd={searchTerms}",
        "https://www.baidu.com/s?ie={inputEncoding}&word={searchTerms}",
        "https://www.baidu.com/{google:pathWildcard}/s?ie={inputEncoding}&word={searchTerms}"
      ],
      "suggest_url": "https://suggestion.baidu.com/su?wd={searchTerms}&action=opensearch&ie={inputEncoding}",
      "type": "SEARCH_ENGINE_BAIDU",
      "id": 21
    },

    "bing": {
      "name": "Bing",
      "keyword": "bing.com",
      "favicon_url": "https://www.bing.com/sa/simg/bing_p_rr_teal_min.ico",
      "search_url": "https://www.bing.com/search?q={searchTerms}&PC=U316&FORM=CHROMN",
      "suggest_url": "https://www.bing.com/osjson.aspx?query={searchTerms}&language={language}&PC=U316",
      "image_url": "https://www.bing.com/images/detail/search?iss=sbiupload&FORM=CHROMI#enterInsights",
      "new_tab_url": "https://www.bing.com/chrome/newtab",
      "image_url_post_params": "imageBin={google:imageThumbnailBase64}",
      "type": "SEARCH_ENGINE_BING",
      "id": 3
    },

    "brave": {
      "name": "Brave Search",
      "keyword": "search.brave.com",
      "favicon_url": "https://cdn.search.brave.com/serp/favicon.ico",
      "search_url": "https://search.brave.com/search?q={searchTerms}",
      "suggest_url": "https://search.brave.com/api/suggest?q={searchTerms}",
      "type": "SEARCH_ENGINE_BRAVE",
      "id": 109
    },

    "coccoc": {
      "name": "Cốc Cốc",
      "keyword": "coccoc.com",
      "favicon_url": "https://coccoc.com/favicon.ico",
      "search_url": "https://coccoc.com/search#query={searchTerms}",
      "type": "SEARCH_ENGINE_COCCOC",
      "id": 91
    },

    "daum": {
      "name": "Daum",
      "keyword": "daum.net",
      "favicon_url": "https://search.daum.net/favicon.ico",
      "search_url": "https://search.daum.net/search?w=tot&DA=JU5&q={searchTerms}",
      "suggest_url": "https://suggest.search.daum.net/sushi/opensearch/pc?q={searchTerms}&DA=JU6",
      "type": "SEARCH_ENGINE_DAUM",
      "id": 68
    },

    "duckduckgo": {
      "name": "DuckDuckGo",
      "keyword": "duckduckgo.com",
      "favicon_url": "https://duckduckgo.com/favicon.ico",
      "search_url": "https://duckduckgo.com/?q={searchTerms}",
      "suggest_url": "https://duckduckgo.com/ac/?q={searchTerms}&type=list",
      "new_tab_url": "https://duckduckgo.com/chrome_newtab",
      "type": "SEARCH_ENGINE_DUCKDUCKGO",
      "id": 92
    },

    "ecosia": {
      "name": "Ecosia",
      "keyword": "ecosia.org",
      "favicon_url": "https://cdn.ecosia.org/assets/images/ico/favicon.ico",
      "search_url": "https://www.ecosia.org/search?q={searchTerms}&addon=opensearch",
      "suggest_url": "https://ac.ecosia.org/autocomplete?q={searchTerms}&type=list",
      "new_tab_url": "https://www.ecosia.org/newtab/",
      "type": "SEARCH_ENGINE_ECOSIA",
      "id": 101
    },

    "google": {
      "name": "Google",
      "keyword": "google.com",
      "favicon_url": "https://www.google.com/images/branding/product/ico/googleg_alldp.ico",
      "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}",
      "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:omniboxFocusType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:clientCacheTimeToLive}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}",
      "image_url": "{google:baseSearchByImageURL}upload",
      "image_translate_url": "{google:baseSearchByImageURL}upload?filtertype=tr&{imageTranslateSourceLocale}{imageTranslateTargetLocale}",
      "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchVersion}{google:contextualSearchContextData}",
      "image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},processed_image_dimensions={google:processedImageDimensions}",
      "side_search_param": "sidesearch",
      "image_translate_source_language_param_key": "sourcelang",
      "image_translate_target_language_param_key": "targetlang",
      "side_image_search_param": "sideimagesearch",
      "search_intent_params": ["si", "gs_ssp"],
      "alternate_urls": [
        "{google:baseURL}#q={searchTerms}",
        "{google:baseURL}search#q={searchTerms}",
        "{google:baseURL}webhp#q={searchTerms}",
        "{google:baseURL}s#q={searchTerms}",
        "{google:baseURL}s?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_GOOGLE",
      "preconnect_to_search_url" : "ALLOWED",
      "prefetch_likely_navigations" : "ALLOWED",
      "id": 1
    },

    "karma": {
      "name": "Karma Search",
      "keyword": "karmasearch.org",
      "favicon_url": "https://karmasearch.org/favicon.ico",
      "search_url": "https://karmasearch.org/search?q={searchTerms}",
      "suggest_url": "https://api.karmasearch.org/search/autosuggest?q={searchTerms}",
      "type": "SEARCH_ENGINE_KARMA",
      "id": 110
    },

    "lilo": {
      "name": "Lilo",
      "keyword": "lilo.org",
      "favicon_url": "https://www.lilo.org/wp-content/themes/jarvis_wp/ajans/assets/favicon.ico",
      "search_url": "https://search.lilo.org/?q={searchTerms}",
      "suggest_url": "https://search.lilo.org/api/?service=suggestions&action=suggest&q={searchTerms}&f=chr",
      "id": 111
    },

    "mail_ru": {
      "name": "@MAIL.RU",
      "keyword": "mail.ru",
      "favicon_url": "https://go.imgsmail.ru/favicon.ico",
      "search_url": "https://go.mail.ru/search?q={searchTerms}&{mailru:referralID}&fr=ch_omnibox",
      "alternate_urls": [
        "https://go.mail.ru/msearch?q={searchTerms}&{mailru:referralID}"
      ],
      "new_tab_url": "https://go.mail.ru/chrome/newtab/",
      "suggest_url": "https://suggests.go.mail.ru/chrome?q={searchTerms}",
      "type": "SEARCH_ENGINE_MAILRU",
      "id": 83
    },

    "mojeek": {
      "name": "Mojeek",
      "keyword": "mojeek.com",
      "favicon_url": "https://www.mojeek.com/favicon.ico",
      "search_url": "https://www.mojeek.com/search?q={searchTerms}",
      "type": "SEARCH_ENGINE_MOJEEK",
      "id": 103
    },

    "naver": {
      "name": "\ub124\uc774\ubc84",
      "keyword": "naver.com",
      "favicon_url": "https://ssl.pstatic.net/sstatic/search/favicon/favicon_140327.ico",
      "search_url": "https://search.naver.com/search.naver?ie={inputEncoding}&query={searchTerms}&sm=chr_hty",
      "suggest_url": "https://ac.search.naver.com/nx/ac?of=os&ie={inputEncoding}&q={searchTerms}&oe={outputEncoding}",
      "type": "SEARCH_ENGINE_NAVER",
      "id": 67
    },

    "nona": {
      "name": "Nona",
      "keyword": "nona.de",
      "favicon_url": "https://www.nona.de/favicon.ico",
      "search_url": "https://www.nona.de/?q={searchTerms}",
      "suggest_url": "https://www.nona.de/autocomplete/?q={searchTerms}",
      "type": "SEARCH_ENGINE_NONA",
      "id": 107
    },

    "panda": {
      "name": "Panda Search",
      "keyword": "panda-search.org",
      "favicon_url": "https://panda-search.org/favicon.ico",
      "search_url": "https://panda-search.org/search/?q={searchTerms}",
      "suggest_url": "https://suggest.panda-search.org/suggest?rtag=pandaomn&rsrc=po&q={searchTerms}&fmt=cr",
      "type": "SEARCH_ENGINE_PANDASEARCH",
      "id": 104
    },

    "petal_search": {
      "name": "Petal Search",
      "keyword": "petalsearch.com",
      "favicon_url": "https://search-static-dre.dbankcdn.com/pc/v1/favicon.ico",
      "search_url": "https://petalsearch.com/search?query={searchTerms}",
      "type": "SEARCH_ENGINE_PETALSEARCH",
      "id": 102
    },

    "presearch": {
      "name": "Presearch",
      "keyword": "presearch.com",
      "favicon_url": "https://presearch.com/favicon.ico",
      "search_url": "https://presearch.com/search?q={searchTerms}&src=c",
      "suggest_url": "https://presearch.com/api/suggest?q={searchTerms}&src=c",
      "type": "SEARCH_ENGINE_PRESEARCH",
      "id": 105
    },

    "quendu": {
      "name": "Quendu.com",
      "keyword": "quendu.com",
      "favicon_url": "https://quendu.com/assets/favicon-48x48.png",
      "search_url": "https://www.quendu.com/search?q={searchTerms}",
      "suggest_url": "https://www.quendu.com/suggest?query={searchTerms}",
      "type": "SEARCH_ENGINE_QUENDU",
      "id": 108
    },

    "qwant": {
      "name": "Qwant",
      "keyword": "qwant.com",
      "favicon_url": "https://www.qwant.com/favicon.ico",
      "search_url": "https://www.qwant.com/?q={searchTerms}&client=opensearch",
      "suggest_url": "https://api.qwant.com/api/suggest/?q={searchTerms}&client=opensearch",
      "type": "SEARCH_ENGINE_QWANT",
      "id": 94
    },

    "seznam_cz": {
      "name": "Seznam",
      "keyword": "seznam.cz",
      "favicon_url": "https://search.seznam.cz/favicon.ico",
      "search_url": "https://search.seznam.cz/?q={searchTerms}",
      "suggest_url": "https://suggest.seznam.cz/fulltext_ff?phrase={searchTerms}",
      "type": "SEARCH_ENGINE_SEZNAM",
      "id": 25
    },

    "seznam_sk": {
      "name": "Seznam",
      "keyword": "seznam.sk",
      "favicon_url": "https://search.seznam.sk/favicon.ico",
      "search_url": "https://search.seznam.sk/?q={searchTerms}",
      "suggest_url": "https://suggest.seznam.sk/fulltext_ff?phrase={searchTerms}",
      "type": "SEARCH_ENGINE_SEZNAM",
      "id": 25
    },

    "so_360": {
      "name": "360",
      "keyword": "so.com",
      "favicon_url": "https://www.so.com/favicon.ico",
      "search_url": "https://www.so.com/s?ie={inputEncoding}&q={searchTerms}",
      "alternate_urls": [
        "https://m.so.com/s?ie={inputEncoding}&q={searchTerms}",
        "https://m.so.com/index.php?ie={inputEncoding}&q={searchTerms}"
      ],
      "suggest_url": "https://sug.so.360.cn/suggest?encodein={inputEncoding}&encodeout={outputEncoding}&format=opensearch&word={searchTerms}",
      "type": "SEARCH_ENGINE_360",
      "id": 88
    },

    "sogou": {
      "name": "\u641c\u72d7",
      "keyword": "sogou.com",
      "favicon_url": "https://www.sogou.com/images/logo/old/favicon.ico",
      "search_url": "https://www.sogou.com/web?ie={inputEncoding}&query={searchTerms}",
      "alternate_urls": [
        "https://m.sogou.com/web/{google:pathWildcard}?ie={inputEncoding}&keyword={searchTerms}"
      ],
      "suggest_url": "https://sugg.sogou.com/sugg/ajaj_json.jsp?type=addrbar&key={searchTerms}&ie={inputEncoding}&from=google",
      "type": "SEARCH_ENGINE_SOGOU",
      "id": 56
    },

    "yahoo": {
      "name": "Yahoo!",
      "keyword": "yahoo.com",
      "favicon_url": "https://search.yahoo.com/favicon.ico",
      "search_url": "https://search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas_sfp&p={searchTerms}",
      "suggest_url": "https://search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas_sfp&command={searchTerms}",
      "new_tab_url": "https://search.yahoo.com?fr=crmas_sfp",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_ar": {
      "name": "Yahoo! Argentina",
      "keyword": "ar.yahoo.com",
      "favicon_url": "https://ar.search.yahoo.com/favicon.ico",
      "search_url": "https://ar.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://ar.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_at": {
      "name": "Yahoo! \u00d6sterreich",
      "keyword": "at.yahoo.com",
      "favicon_url": "https://at.search.yahoo.com/favicon.ico",
      "search_url": "https://at.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://at.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_au": {
      "name": "Yahoo!7",
      "keyword": "au.yahoo.com",
      "favicon_url": "https://au.search.yahoo.com/favicon.ico",
      "search_url": "https://au.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://au.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_br": {
      "name": "Yahoo! Brasil",
      "keyword": "br.yahoo.com",
      "favicon_url": "https://br.search.yahoo.com/favicon.ico",
      "search_url": "https://br.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://br.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_ca": {
      "name": "Yahoo! Canada",
      "keyword": "ca.yahoo.com",
      "favicon_url": "https://ca.search.yahoo.com/favicon.ico",
      "search_url": "https://ca.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://ca.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_ch": {
      "name": "Yahoo! Schweiz",
      "keyword": "ch.yahoo.com",
      "favicon_url": "https://ch.search.yahoo.com/favicon.ico",
      "search_url": "https://ch.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://ch.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_cl": {
      "name": "Yahoo! Chile",
      "keyword": "cl.yahoo.com",
      "favicon_url": "https://cl.search.yahoo.com/favicon.ico",
      "search_url": "https://cl.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://cl.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_co": {
      "name": "Yahoo! Colombia",
      "keyword": "co.yahoo.com",
      "favicon_url": "https://co.search.yahoo.com/favicon.ico",
      "search_url": "https://co.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://co.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_de": {
      "name": "Yahoo! Deutschland",
      "keyword": "de.yahoo.com",
      "favicon_url": "https://de.search.yahoo.com/favicon.ico",
      "search_url": "https://de.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://de.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    // For regional Yahoo variants without a region-specific suggestion service,
    // suggestion is disabled. For some of them, we might consider using one of
    // the other language/country URLs as a fallback.
    "yahoo_dk": {
      "name": "Yahoo! Danmark",
      "keyword": "dk.yahoo.com",
      "favicon_url": "https://dk.search.yahoo.com/favicon.ico",
      "search_url": "https://dk.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_es": {
      "name": "Yahoo! Espa\u00f1a",
      "keyword": "es.yahoo.com",
      "favicon_url": "https://es.search.yahoo.com/favicon.ico",
      "search_url": "https://es.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://es.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_fi": {
      "name": "Yahoo! Suomi",
      "keyword": "fi.yahoo.com",
      "favicon_url": "https://fi.search.yahoo.com/favicon.ico",
      "search_url": "https://fi.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_fr": {
      "name": "Yahoo! France",
      "keyword": "fr.yahoo.com",
      "favicon_url": "https://fr.search.yahoo.com/favicon.ico",
      "search_url": "https://fr.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://fr.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_hk": {
      "name": "Yahoo! Hong Kong",
      "keyword": "hk.yahoo.com",
      "favicon_url": "https://hk.search.yahoo.com/favicon.ico",
      "search_url": "https://hk.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://hk.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_id": {
      "name": "Yahoo! Indonesia",
      "keyword": "id.yahoo.com",
      "favicon_url": "https://id.search.yahoo.com/favicon.ico",
      "search_url": "https://id.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://id.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_in": {
      "name": "Yahoo! India",
      "keyword": "in.yahoo.com",
      "favicon_url": "https://in.search.yahoo.com/favicon.ico",
      "search_url": "https://in.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://in.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_jp": {
      "name": "Yahoo! JAPAN",
      "keyword": "yahoo.co.jp",
      "favicon_url": "https://search.yahoo.co.jp/favicon.ico",
      "search_url": "https://search.yahoo.co.jp/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://search.yahooapis.jp/AssistSearchService/V2/webassistSearch?p={searchTerms}&appid=oQsoxcyxg66enp0TYoirkKoryq6rF8bK76mW0KYxZ0v0WPLtn.Lix6wy8F_LwGWHUII-&output=fxjson&fr=crmas",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_mx": {
      "name": "Yahoo! M\u00e9xico",
      "keyword": "mx.yahoo.com",
      "favicon_url": "https://mx.search.yahoo.com/favicon.ico",
      "search_url": "https://mx.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://mx.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_my": {
      "name": "Yahoo! Malaysia",
      "keyword": "malaysia.yahoo.com",
      "favicon_url": "https://malaysia.search.yahoo.com/favicon.ico",
      "search_url": "https://malaysia.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://malaysia.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_nl": {
      "name": "Yahoo! Nederland",
      "keyword": "nl.yahoo.com",
      "favicon_url": "https://nl.search.yahoo.com/favicon.ico",
      "search_url": "https://nl.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://nl.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_nz": {
      "name": "Yahoo! New Zealand",
      "keyword": "nz.yahoo.com",
      "favicon_url": "https://nz.search.yahoo.com/favicon.ico",
      "search_url": "https://nz.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://nz.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_pe": {
      "name": "Yahoo! Per\u00fa",
      "keyword": "pe.yahoo.com",
      "favicon_url": "https://pe.search.yahoo.com/favicon.ico",
      "search_url": "https://pe.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://pe.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_ph": {
      "name": "Yahoo! Philippines",
      "keyword": "ph.yahoo.com",
      "favicon_url": "https://ph.search.yahoo.com/favicon.ico",
      "search_url": "https://ph.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://ph.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_se": {
      "name": "Yahoo! Sverige",
      "keyword": "se.yahoo.com",
      "favicon_url": "https://se.search.yahoo.com/favicon.ico",
      "search_url": "https://se.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_sg": {
      "name": "Yahoo! Singapore",
      "keyword": "sg.yahoo.com",
      "favicon_url": "https://sg.search.yahoo.com/favicon.ico",
      "search_url": "https://sg.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://sg.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_th": {
      "name": "Yahoo! \u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",
      "keyword": "th.yahoo.com",
      "favicon_url": "https://th.search.yahoo.com/favicon.ico",
      "search_url": "https://th.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://th.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_tr": {
      "name": "Yahoo! T\u00fcrkiye",
      "keyword": "tr.yahoo.com",
      "favicon_url": "https://tr.search.yahoo.com/favicon.ico",
      "search_url": "https://tr.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_tw": {
      "name": "Yahoo!\u5947\u6469",
      "keyword": "tw.yahoo.com",
      "favicon_url": "https://tw.search.yahoo.com/favicon.ico",
      "search_url": "https://tw.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://tw.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_uk": {
      "name": "Yahoo! UK & Ireland",
      "keyword": "uk.yahoo.com",
      "favicon_url": "https://uk.search.yahoo.com/favicon.ico",
      "search_url": "https://uk.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://uk.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_ve": {
      "name": "Yahoo! Venezuela",
      "keyword": "ve.yahoo.com",
      "favicon_url": "https://ve.search.yahoo.com/favicon.ico",
      "search_url": "https://ve.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://ve.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yahoo_vn": {
      "name": "Yahoo! Vi\u1ec7t Nam",
      "keyword": "vn.yahoo.com",
      "favicon_url": "https://vn.search.yahoo.com/favicon.ico",
      "search_url": "https://vn.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://vn.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "yandex_by": {
      "name": "\u042f\u043d\u0434\u0435\u043a\u0441",
      "keyword": "yandex.by",
      "favicon_url": "https://yastatic.net/lego/_/pDu9OWAQKB0s2J9IojKpiS_Eho.ico",
      "logo_url": "https://storage.ape.yandex.net/get/browser/Doodles/yandex/drawable-xxhdpi/yandex.png",
      "search_url": "https://yandex.by/{yandex:searchPath}?text={searchTerms}",
      "suggest_url": "https://suggest.yandex.by/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
      "image_url": "https://yandex.by/images/search/?rpt=imageview",
      "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
      "new_tab_url": "https://www.yandex.by/chrome/newtab",
      "type": "SEARCH_ENGINE_YANDEX",
      "id": 15
    },

    "yandex_com": {
      "name": "Yandex",
      "keyword": "yandex.com",
      "favicon_url": "https://yastatic.net/lego/_/rBTjd6UOPk5913OSn5ZQVYMTQWQ.ico",
      "search_url": "https://yandex.com/search/?text={searchTerms}&from=os&clid=1836588",
      "suggest_url": "https://suggest.yandex.com/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}&uil=en&v=3&sn=5",
      "image_url": "https://yandex.com/images/search?rpt=imageview",
      "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
      "type": "SEARCH_ENGINE_YANDEX",
      "id": 15
    },

    "yandex_kz": {
      "name": "\u042f\u043d\u0434\u0435\u043a\u0441",
      "keyword": "yandex.kz",
      "favicon_url": "https://yastatic.net/lego/_/pDu9OWAQKB0s2J9IojKpiS_Eho.ico",
      "logo_url": "https://storage.ape.yandex.net/get/browser/Doodles/yandex/drawable-xxhdpi/yandex.png",
      "search_url": "https://yandex.kz/{yandex:searchPath}?text={searchTerms}",
      "suggest_url": "https://suggest.yandex.kz/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
      "image_url": "https://yandex.kz/images/search/?rpt=imageview",
      "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
      "new_tab_url": "https://www.yandex.kz/chrome/newtab",
      "type": "SEARCH_ENGINE_YANDEX",
      "id": 15
    },

    "yandex_ru": {
      "name": "\u042f\u043d\u0434\u0435\u043a\u0441",
      "keyword": "yandex.ru",
      "favicon_url": "https://yastatic.net/lego/_/pDu9OWAQKB0s2J9IojKpiS_Eho.ico",
      "logo_url": "https://storage.ape.yandex.net/get/browser/Doodles/yandex/drawable-xxhdpi/yandex.png",
      "search_url": "https://yandex.ru/{yandex:searchPath}?text={searchTerms}&{yandex:referralID}",
      "suggest_url": "https://suggest.yandex.ru/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
      "image_url": "https://yandex.ru/images/search/?rpt=imageview",
      "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
      "new_tab_url": "https://www.yandex.ru/chrome/newtab",
      "type": "SEARCH_ENGINE_YANDEX",
      "id": 15
    },

    "yandex_tr": {
      "name": "Yandex",
      "keyword": "yandex.com.tr",
      "favicon_url": "https://yastatic.net/lego/_/rBTjd6UOPk5913OSn5ZQVYMTQWQ.ico",
      "search_url": "https://www.yandex.com.tr/{yandex:searchPath}?text={searchTerms}",
      "suggest_url": "https://suggest.yandex.com.tr/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
      "image_url": "https://yandex.com.tr/gorsel/search?rpt=imageview",
      "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
      "new_tab_url": "https://www.yandex.com.tr/chrome/newtab",
      "type": "SEARCH_ENGINE_YANDEX",
      "id": 15
    },

    "yandex_ua": {
      "name": "\u042f\u043d\u0434\u0435\u043a\u0441",
      "keyword": "yandex.ua",
      "favicon_url": "https://yastatic.net/lego/_/pDu9OWAQKB0s2J9IojKpiS_Eho.ico",
      "logo_url": "https://storage.ape.yandex.net/get/browser/Doodles/yandex/drawable-xxhdpi/yandex.png",
      "search_url": "https://yandex.ua/{yandex:searchPath}?text={searchTerms}",
      "suggest_url": "https://suggest.yandex.ua/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
      "image_url": "https://yandex.ua/images/search/?rpt=imageview",
      "image_url_post_params": "upfile={google:imageThumbnail},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight},prg=1",
      "new_tab_url": "https://www.yandex.ua/chrome/newtab",
      "type": "SEARCH_ENGINE_YANDEX",
      "id": 15
    },

    "yep": {
      "name": "Yep",
      "keyword": "yep.com",
      "favicon_url": "https://cdn.yep.com/static/meta/favicon.ico",
      "search_url": "https://yep.com/web?q={searchTerms}",
      "suggest_url": "https://api.yep.com/ac/?query={searchTerms}&os=true",
      "type": "SEARCH_ENGINE_YEP",
      "id": 106
    },

    // UMA-only engines 

    // The following engines are not included in any of the country lists. They
    // are listed in |kAllEngines|, however, so that GetEngineType can find them
    // for UMA reporting purposes.

    "atlas_cz": {
      "name": "Atlas.cz",
      "keyword": "atlas.cz",
      "favicon_url": "https://searchatlas.centrum.cz/favicon.ico",
      "search_url": "https://searchatlas.centrum.cz/?q={searchTerms}",
      "alternate_urls": [
        "http://searchatlas.centrum.cz/?q={searchTerms}"
      ],
      "suggest_url": "http://radce.centrum.cz/?q={searchTerms}&of=1",
      "type": "SEARCH_ENGINE_ATLAS",
      "id": 27
    },

    "atlas_sk": {
      "name": "ATLAS.SK",
      "keyword": "atlas.sk",
      "favicon_url": "http://static.mediacentrum.sk/katalog/atlas.sk/images/favicon.ico",
      "search_url": "https://hladaj.atlas.sk/fulltext/?phrase={searchTerms}",
      "alternate_urls": [
	"http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_ATLAS",
      "id": 27
    },

    "avg": {
      "name": "AVG",
      "keyword": "search.avg.com",
      "favicon_url": "http://search.avg.com/favicon.ico",
      "search_url": "http://search.avg.com/search?q={searchTerms}",
      "alternate_urls": [
        "http://isearch.avg.com/search?q={searchTerms}",
        "http://search.avg.com/route/?q={searchTerms}&lng={language}",
        "https://isearch.avg.com/search?q={searchTerms}",
        "https://search.avg.com/route/?q={searchTerms}&lng={language}"
      ],
      "type": "SEARCH_ENGINE_AVG",
      "id": 50
    },

    "babylon": {
      "name": "Babylon",
      "keyword": "search.babylon.com",
      "favicon_url": "http://search.babylon.com/favicon.ico",
      "search_url": "http://search.babylon.com/home?q={searchTerms}",
      "alternate_urls": [
        "http://search.babylon.com/?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_BABYLON",
      "id": 64
    },

    "conduit": {
      "name": "Conduit",
      "keyword": "conduit.com",
      "favicon_url": "http://www.conduit.com/favicon.ico",
      "search_url": "http://www.conduit.com/search?q={searchTerms}&ie={inputEncoding}&cx=010301873083402539744%3Anxaq5wgrtuo&cof=forid%3A11",
      "alternate_urls": [
        "http://search.conduit.com/Results.aspx?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_CONDUIT",
      "id": 36
    },

    "delfi_lt": {
      "name": "DELFI",
      "keyword": "delfi.lt",
      "favicon_url": "https://www.delfi.lt/favicon.ico",
      "search_url": "https://www.delfi.lt/paieska/?q={searchTerms}",
      "alternate_urls": [
	"http://www.delfi.lt/paieska/?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_DELFI",
      "id": 45
    },

    "delfi_lv": {
      "name": "DELFI",
      "keyword": "delfi.lv",
      "favicon_url": "http://g1.delphi.lv/favicon.ico",
      "search_url": "http://www.delfi.lv/search_all/?ie={inputEncoding}&q={searchTerms}&lang={language}&cx=partner-pub-7754285690273419%3A1507605038&cof=FORID%3A10",
      "type": "SEARCH_ENGINE_DELFI",
      "id": 45
    },

    "delta": {
      "name": "Delta",
      "keyword": "delta-search.com",
      "favicon_url": "http://www.delta-search.com/favicon.ico",
      "search_url": "http://www.delta-search.com/home?q={searchTerms}",
      "alternate_urls": [
        "http://www.delta-search.com/?q={searchTerms}",
        "http://www1.delta-search.com/home?q={searchTerms}",
        "http://www1.delta-search.com/?q={searchTerms}",
        "http://www2.delta-search.com/home?q={searchTerms}",
        "http://www2.delta-search.com/?q={searchTerms}",
        "http://www.search.delta-search.com/home?q={searchTerms}",
        "http://www.search.delta-search.com/?q={searchTerms}",
        "http://www.yhs.delta-search.com/home?q={searchTerms}",
        "http://www.yhs.delta-search.com/?q={searchTerms}",
        "http://mixidj.delta-search.com/home?q={searchTerms}",
        "http://mixidj.delta-search.com/?q={searchTerms}",
        "http://www.search.delta-search.com/home?q={searchTerms}",
        "http://www.search.delta-search.com/?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_DELTA",
      "id": 66
    },

    "funmoods": {
      "name": "Funmoods",
      "keyword": "searchfunmoods.com",
      "favicon_url": "http://searchfunmoods.com/favicon.ico",
      "search_url": "http://searchfunmoods.com/results.php?q={searchTerms}",
      "type": "SEARCH_ENGINE_FUNMOODS",
      "id": 60
    },

    "givero": {
      "name": "Givero",
      "keyword": "givero.com",
      "favicon_url": "https://www.givero.com/favicon.ico",
      "search_url": "https://www.givero.com/search?q={searchTerms}",
      "suggest_url": "https://www.givero.com/suggest?q={searchTerms}",
      "type": "SEARCH_ENGINE_GIVERO",
      "id": 95
    },

    "gmx": {
      "name": "GMX Search",
      "keyword": "search.gmx.com",
      "favicon_url": "https://dl.gmx.com/apps/favicon.ico",
      "search_url": "https://search.gmx.com/web/result?q={searchTerms}&sp=b",
      "suggest_url": "https://suggestplugin.gmx.com/s?q={searchTerms}&brand=gmxcom&enc={inputEncoding}&sp=b",
      "type": "SEARCH_ENGINE_GMX",
      "id": 96
    },

    "gmx_at": {
      "name": "GMX Suche",
      "keyword": "suche.gmx.at",
      "favicon_url": "https://dl.gmx.com/apps/favicon.ico",
      "search_url": "https://suche.gmx.at/web/result?q={searchTerms}&sp=b",
      "suggest_url": "https://suggestplugin.gmx.at/s?q={searchTerms}&brand=gmxat&enc={inputEncoding}&sp=b",
      "type": "SEARCH_ENGINE_GMX",
      "id": 96
    },

    "gmx_de": {
      "name": "GMX Suche",
      "keyword": "suche.gmx.net",
      "favicon_url": "https://dl.gmx.com/apps/favicon.ico",
      "search_url": "https://suche.gmx.net/web/result?q={searchTerms}&sp=b",
      "suggest_url": "https://suggestplugin.gmx.net/s?q={searchTerms}&brand=gmx&enc={inputEncoding}&sp=b",
      "type": "SEARCH_ENGINE_GMX",
      "id": 96
    },

    "gmx_es": {
      "name": "GMX Search",
      "keyword": "search.gmx.es",
      "favicon_url": "https://dl.gmx.com/apps/favicon.ico",
      "search_url": "https://search.gmx.es/web/result?q={searchTerms}&sp=b",
      "suggest_url": "https://suggestplugin.gmx.es/s?q={searchTerms}&brand=gmxes&enc={inputEncoding}&sp=b",
      "type": "SEARCH_ENGINE_GMX",
      "id": 96
    },

    "gmx_fr": {
      "name": "GMX Search",
      "keyword": "search.gmx.fr",
      "favicon_url": "https://dl.gmx.com/apps/favicon.ico",
      "search_url": "https://search.gmx.fr/web/result?q={searchTerms}&sp=b",
      "suggest_url": "https://suggestplugin.gmx.fr/s?q={searchTerms}&brand=gmxfr&enc={inputEncoding}&sp=b",
      "type": "SEARCH_ENGINE_GMX",
      "id": 96
    },

    "gmx_gb": {
      "name": "GMX Search",
      "keyword": "search.gmx.co.uk",
      "favicon_url": "https://dl.gmx.com/apps/favicon.ico",
      "search_url": "https://search.gmx.co.uk/web/result?q={searchTerms}&sp=b",
      "suggest_url": "https://suggestplugin.gmx.co.uk/s?q={searchTerms}&brand=gmxcouk&enc={inputEncoding}&sp=b",
      "type": "SEARCH_ENGINE_GMX",
      "id": 96
    },

    "goo": {
      "name": "goo",
      "keyword": "search.goo.ne.jp",
      "favicon_url": "https://search.goo.ne.jp/cdn/common/img/favicon.ico",
      "search_url": "https://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}",
      "suggest_url": "https://search.goo.ne.jp/sgt.jsp?MT={searchTerms}&CL=plugin&FM=json&IE={inputEncoding}",
      "alternate_urls": [
        "http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}",
        "http://search.goo.ne.jp/sgt.jsp?MT={searchTerms}&CL=plugin&FM=json&IE={inputEncoding}"
      ],
      "encoding": "EUC-JP",
      "type": "SEARCH_ENGINE_GOO",
      "id": 23
    },

    "imesh": {
      "name": "IMesh",
      "keyword": "search.imesh.net",
      "favicon_url": "http://search.imesh.net/favicon.ico",
      "search_url": "http://search.imesh.net/music?hl={language}&si={searchTerms}",
      "type": "SEARCH_ENGINE_IMESH",
      "id": 81
    },

    "iminent": {
      "name": "SearchTheWeb",
      "keyword": "iminent.com",
      "favicon_url": "http://search.iminent.com/Shared/Images/favicon_gl.ico",
      "search_url": "http://search.iminent.com/?q={searchTerms}",
      "alternate_urls": [
        "http://search.iminent.com/SearchTheWeb/v6/1033/homepage/Default.aspx#q={searchTerms}",
        "http://search.iminent.com/SearchTheWeb/v6/1033/homepage/Result.aspx#q={searchTerms}",
        "http://start.iminent.com/?q={searchTerms}",
        "http://start.iminent.com/StartWeb/1033/homepage/#q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_IMINENT",
      "id": 79
    },

    "in": {
      "name": "in.gr",
      "keyword": "in.gr",
      "favicon_url": "http://find.in.gr/Themes/1/Default/Media/Layout/icon_in.png",
      "search_url": "http://find.in.gr/?q={searchTerms}&ie={inputEncoding}&cx=partner-pub-3451081775397713%3Aklnvxp4nycj&cof=FORID%3A9",
      "type": "SEARCH_ENGINE_IN",
      "id": 54
    },

    "incredibar": {
      "name": "MyStart",
      "keyword": "mystart.incredibar.com",
      "favicon_url": "http://search.incredibar.com/favicon.ico",
      "search_url": "http://search.incredibar.com/search.php?q={searchTerms}",
      "alternate_urls": [
        "http://search.incredibar.com/?q={searchTerms}",
        "http://mystart.incredibar.com/?search={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_INCREDIBAR",
      "id": 74
    },

    "info_com": {
      "name": "Info.com",
      "keyword": "info.com",
      "favicon_url": "https://www.info.com/static/www.info.com/favicon.ico",
      "search_url": "https://www.info.com/serp?q={searchTerms}&segment=info.0472",
      "type": "SEARCH_ENGINE_INFO_COM",
      "id": 97
    },

    "libero": {
      "name": "Libero",
      "keyword": "libero.it",
      "favicon_url": "http://ms1.iol.it/graph_hf/v.8.3.04/themes/default/img/favicon.ico",
      "search_url": "http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}",
      "encoding": "ISO-8859-1",
      "type": "SEARCH_ENGINE_LIBERO",
      "id": 63
    },

    "metager_de": {
      "name": "MetaGer",
      "keyword": "metager.de",
      "favicon_url": "https://metager.de/favicon.ico",
      "search_url": "https://metager.de/meta/meta.ger3?eingabe={searchTerms}",
      "type": "SEARCH_ENGINE_METAGER",
      "id": 98
    },

    "metager_gb": {
      "name": "MetaGer",
      "keyword": "metager.org",
      "favicon_url": "https://metager.de/favicon.ico",
      "search_url": "https://metager.org/meta/meta.ger3?eingabe={searchTerms}",
      "type": "SEARCH_ENGINE_METAGER",
      "id": 98
    },

    "neti": {
      "name": "NETI",
      "keyword": "neti.ee",
      "favicon_url": "http://www.neti.ee/favicon.ico",
      "search_url": "http://www.neti.ee/cgi-bin/otsing?query={searchTerms}",
      "suggest_url": "http://www.neti.ee/api/suggestOS?suggestQuery={searchTerms}",
      "alternate_urls": [
        "https://www.neti.ee/cgi-bin/otsing?query={searchTerms}&src=web",
        "https://www.neti.ee/api/suggestOS?suggestVersion=1&suggestQuery={searchTerms}"
      ],
      "encoding": "ISO-8859-1",
      "type": "SEARCH_ENGINE_NETI",
      "id": 44
    },

    "nigma": {
      "name": "\u041d\u0438\u0433\u043c\u0430",
      "keyword": "nigma.ru",
      "favicon_url": "http://nigma.ru/themes/nigma/img/favicon.ico",
      "search_url": "http://nigma.ru/?s={searchTerms}",
      "suggest_url": "http://autocomplete.nigma.ru/complete/query_help.php?suggest=true&q={searchTerms}",
      "type": "SEARCH_ENGINE_NIGMA",
      "id": 43
    },

    "oceanhero":{
      "name": "OceanHero",
      "keyword": "oceanhero.today",
      "favicon_url": "https://oceanhero.today/favicon.ico",
      "search_url": "https://oceanhero.today/web?q={searchTerms}",
      "suggest_url": "https://api.oceanhero.today/suggestions?q={searchTerms}",
      "type": "SEARCH_ENGINE_OCEANHERO",
      "id": 99
    },

    "ok": {
      "name": "OK.hu",
      "keyword": "ok.hu",
      "favicon_url": "http://ok.hu/gfx/favicon.ico",
      "search_url": "http://ok.hu/katalogus?q={searchTerms}",
      "encoding": "ISO-8859-2",
      "type": "SEARCH_ENGINE_OK",
      "id": 6
    },

    "privacywall": {
      "name": "PrivacyWall",
      "keyword": "privacywall.org",
      "favicon_url": "https://www.privacywall.org/images/favicon_32x32.ico",
      "search_url": "https://www.privacywall.org/search/secure/?q={searchTerms}",
      "suggest_url": "https://search.privacywall.org/suggest.php?q={searchTerms}",
      "type": "SEARCH_ENGINE_PRIVACYWALL",
      "id": 100
    },

    "rambler": {
      "name": "\u0420\u0430\u043c\u0431\u043b\u0435\u0440",
      "keyword": "rambler.ru",
      "favicon_url": "http://i.rl0.ru/2011/icons/rambler.ico",
      "search_url": "http://nova.rambler.ru/search?query={searchTerms}",
      "suggest_url": "http://nova.rambler.ru/suggest?v=3&query={searchTerms}",
      "alternate_urls": [
        "https://nova.rambler.ru/search?query={searchTerms}",
        "https://nova.rambler.ru/suggest?v=3&query={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_RAMBLER",
      "id": 16
    },

    "sapo": {
      "name": "SAPO",
      "keyword": "sapo.pt",
      "favicon_url": "http://imgs.sapo.pt/images/sapo.ico",
      "search_url": "http://pesquisa.sapo.pt/?q={searchTerms}",
      "suggest_url": "http://pesquisa.sapo.pt/livesapo?q={searchTerms}",
      "type": "SEARCH_ENGINE_SAPO",
      "id": 77
    },

    "searchnu": {
      "name": "searchnu",
      "keyword": "searchnu.com",
      "favicon_url": "http://www.searchnu.com/favicon.ico",
      "search_url": "http://www.searchnu.com/web?hl={language}&si={searchTerms}",
      "type": "SEARCH_ENGINE_SEARCHNU",
      "id": 61
    },

    "search_results": {
      "name": "Search-results",
      "keyword": "search-results.com",
      "favicon_url": "http://ak.apnstatic.com/media/images/favicon_search-results.ico",
      "search_url": "http://dts.search-results.com/sr?lng={language}&src=hmp&q={searchTerms}",
      "alternate_urls": [
        "http://www.search-results.com/web?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_SEARCH_RESULTS",
      "id": 78
    },

    "snapdo": {
      "name": "SnapDo",
      "keyword": "search.snapdo.com",
      "favicon_url": "http://linkurystoragenorthus.blob.core.windows.net/static/favicon.ico",
      "search_url": "http://search.snapdo.com/?q={searchTerms}",
      "alternate_urls": [
        "http://search.snap.do/?q={searchTerms}",
        "http://feed.snapdo.com/?q={searchTerms}",
        "http://feed.snap.do/?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_SNAPDO",
      "id": 70
    },

    "softonic": {
      "name": "softonic",
      "keyword": "search.softonic.com",
      "favicon_url": "http://search.softonic.com/img/favicon.ico",
      "search_url": "http://search.softonic.com/?q={searchTerms}",
      "alternate_urls": [
        "http://en.softonic.com/s/{searchTerms}",
        "http://www.softonic.com/s/{searchTerms}",
        "http://www.softonic.com.br/s/{searchTerms}",
        "http://buscador.softonic.com/?q={searchTerms}",
        "http://nl.softonic.com/s/{searchTerms}",
        "https://search.softonic.com/?q={searchTerms}",
        "https://en.softonic.com/s/{searchTerms}",
        "https://www.softonic.com/s/{searchTerms}",
        "https://www.softonic.com.br/s/{searchTerms}",
        "https://buscador.softonic.com/?q={searchTerms}",
        "https://nl.softonic.com/s/{searchTerms}"
      ],
      "type": "SEARCH_ENGINE_SOFTONIC",
      "id": 80
    },

    "sweetim": {
      "name": "SweetIM",
      "keyword": "home.sweetim.com",
      "favicon_url": "http://search.sweetim.com/favicon.ico",
      "search_url": "http://search.sweetim.com/search.asp?q={searchTerms}&ln={language}",
      "type": "SEARCH_ENGINE_SWEETPACKS",
      "id": 65
    },

    "sweetpacks": {
      "name": "Sweetpacks",
      "keyword": "start.sweetpacks.com",
      "favicon_url": "http://start.sweetpacks.com/favicon.ico",
      "search_url": "http://start.sweetpacks.com/search.asp?q={searchTerms}&ln={language}",
      "alternate_urls": [
        "http://start.sweetpacks.com/?q={searchTerms}",
        "http://mysearch.sweetpacks.com/?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_SWEETPACKS",
      "id": 65
    },

    "terra_ar": {
      "name": "Terra Argentina",
      "keyword": "terra.com.ar",
      "favicon_url": "http://buscar.terra.com.ar/favicon.ico",
      "search_url": "http://buscar.terra.com.ar/Default.aspx?source=Search&ca=s&query={searchTerms}",
      "alternate_urls": [
        "https://buscador.terra.com.ar/Default.aspx?source=Search&ca=s&query={searchTerms}"
      ],
      "encoding": "ISO-8859-1",
      "type": "SEARCH_ENGINE_TERRA",
      "id": 90
    },

    "terra_es": {
      "name": "Terra",
      "keyword": "terra.es",
      "favicon_url": "http://buscador.terra.es/favicon.ico",
      "search_url": "http://buscador.terra.es/Default.aspx?source=Search&ca=s&query={searchTerms}",
      "alternate_urls": [
        "https://buscador.terra.es/Default.aspx?source=Search&ca=s&query={searchTerms}"
      ],
      "encoding": "ISO-8859-1",
      "type": "SEARCH_ENGINE_TERRA",
      "id": 90
    },

    "tut": {
      "name": "TUT.BY",
      "keyword": "tut.by",
      "favicon_url": "http://search.tut.by/favicon.ico",
      "search_url": "http://search.tut.by/?ru=1&query={searchTerms}",
      "suggest_url": "http://suggest.yandex.ru/suggest-ff.cgi?part={searchTerms}&limit=10",
      "type": "SEARCH_ENGINE_TUT",
      "id": 17
    },

    "walla": {
      "name": "\u05d5\u05d5\u05d0\u05dc\u05d4!",
      "keyword": "walla.co.il",
      "favicon_url": "http://www.walla.co.il/favicon.ico",
      "search_url": "http://search.walla.co.il/?q={searchTerms}",
      "alternate_urls": [
        "https://search.walla.co.il/?q={searchTerms}"
      ],
      "type": "SEARCH_ENGINE_WALLA",
      "id": 55
    },

    "wp": {
      "name": "Wirtualna Polska",
      "keyword": "wp.pl",
      "favicon_url": "http://i.wp.pl/a/i/stg/500/favicon.ico",
      "search_url": "http://szukaj.wp.pl/szukaj.html?q={searchTerms}",
      "type": "SEARCH_ENGINE_WP",
      "id": 76
    },

    "yahoo_qc": {
      "name": "Yahoo! Qu\u00e9bec",
      "keyword": "qc.yahoo.com",
      "favicon_url": "https://qc.search.yahoo.com/favicon.ico",
      "search_url": "https://qc.search.yahoo.com/search{google:pathWildcard}?ei={inputEncoding}&fr=crmas&p={searchTerms}",
      "suggest_url": "https://qc.search.yahoo.com/sugg/chrome?output=fxjson&appid=crmas&command={searchTerms}",
      "type": "SEARCH_ENGINE_YAHOO",
      "id": 2
    },

    "zoznam": {
      "name": "Zoznam",
      "keyword": "zoznam.sk",
      "favicon_url": "https://www.zoznam.sk/favicon.ico",
      "search_url": "https://www.zoznam.sk/hladaj.fcgi?s={searchTerms}",
      "alternate_urls": [
        "http://www.zoznam.sk/hladaj.fcgi?s={searchTerms}"
      ],
      "encoding": "windows-1250",
      "type": "SEARCH_ENGINE_ZOZNAM",
      "id": 85
    }
  },

  "generate_array": {
    "array_name": "kAllEngines"
  }
}

components\search_engines\prepopulated_engines.json 文件里面定义了所有默认搜索引擎数据,初始化也是从此处读取。

2、选项页中初始化的顺序来源是参考

components\search_engines\template_url_prepopulate_data.cc 文件,直接修改此文件代码顺序即可。

摘取中文的初始化

cpp 复制代码
// China
constexpr EngineAndTier engines_CN[] = {
  {SearchEngineTier::kTopEngines, &baidu},
  {SearchEngineTier::kTopEngines, &bing},
  {SearchEngineTier::kTopEngines, &sogou},
  {SearchEngineTier::kTopEngines, &so_360},
  {SearchEngineTier::kTopEngines, &google},
};

3、浏览器启动之后存储位置

C:\Users\Administrator\AppData\Local\Chromium\User Data\Default\Web Data 数据库keywords表里面 【%localappdata%/Chromium】

例子:保留 百度和必应为例

1、修改components\search_engines\template_url_prepopulate_data.cc

cpp 复制代码
// China
constexpr EngineAndTier engines_CN[] = {
  {SearchEngineTier::kTopEngines, &baidu},
  {SearchEngineTier::kTopEngines, &bing},
};

2、在components\search_engines\prepopulated_engines.json中将

"kCurrentDataVersion": 146 版本号+1 145->146

此版本号+1的目的是为了清除旧版本数据库,用新的去覆盖,如果不+1。只能把userdata 里面

Web Data数据库重新删除,浏览器再启动的时候才会初始化成百度和必应搜索引擎。

cpp 复制代码
{

  "int_variables": {

    // When adding new engines, increment this number and use it as the new

    // max ID. This is used by UMA stats and must be updated to include the full

    // range or else not all engines will be counted in stats.

    "kMaxPrepopulatedEngineID": 111,



    // Increment this if you change the data in ways that mean users with

    // existing data should get a new version. Otherwise, existing data may

    // continue to be used and updates made here will not always appear.

    // Also then run tools/search_engine_choice/generate_search_engine_icons.py.

    "kCurrentDataVersion": 146  版本号+1

  },

3、ninja -C out/debug chrome 编译看下效果:

已经将列表改成百度和必应搜索引擎,完结。

附修改记录:

相关推荐
爱吃生蚝的于勒1 小时前
C语言内存函数
c语言·开发语言·数据结构·c++·学习·算法
小白学大数据3 小时前
Python爬虫开发中的分析与方案制定
开发语言·c++·爬虫·python
versatile_zpc5 小时前
C++初阶:类和对象(上)
开发语言·c++
小鱼仙官5 小时前
MFC IDC_STATIC控件嵌入一个DIALOG界面
c++·mfc
神仙别闹5 小时前
基本MFC类框架的俄罗斯方块游戏
c++·游戏·mfc
娅娅梨6 小时前
C++ 错题本--not found for architecture x86_64 问题
开发语言·c++
光算科技6 小时前
如何用WordPress和Shopify提升SEO表现?
搜索引擎
兵哥工控6 小时前
MFC工控项目实例二十九主对话框调用子对话框设定参数值
c++·mfc
我爱工作&工作love我6 小时前
1435:【例题3】曲线 一本通 代替三分
c++·算法
娃娃丢没有坏心思7 小时前
C++20 概念与约束(2)—— 初识概念与约束
c语言·c++·现代c++