chromium/components/search_engines/search_engine_countries-inc.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

// NOTE: You should probably not change the data in this file without changing
// |kCurrentDataVersion| in prepopulated_engines.json. See comments in
// GetDataVersion() below!

// Also see if the config at
// tools/search_engine_choice/generate_search_engine_icons_config.json needs to
// be updated, and then run
// tools/search_engine_choice/generate_search_engine_icons.py to refresh icons.

// Search engine tier per country.
// SearchEngineTier will be equal to kTopEngines for the top 5 engines,
// kTyingEngines for tying 5+th engines and kRemainingEngines for the
// remaining engines.
enum class SearchEngineTier {};

// `PrepopulateEngine` and tier per country.
struct EngineAndTier {};

// Put the engines within each country sorted based on some internal logic.
// The default will be the first engine.
// TODO(b/326396215): Link to documentation on this once it is published.

// Default (for countries with no better engine set)
constexpr EngineAndTier engines_default[] =;

// Note, the below entries are sorted by country code, not the name in comment.
// Engine selection by country ------------------------------------------------
// clang-format off
// United Arab Emirates
constexpr EngineAndTier engines_AE[] =;

// Albania
constexpr EngineAndTier engines_AL[] =;

// Argentina
constexpr EngineAndTier engines_AR[] =;

// Austria
constexpr EngineAndTier engines_AT[] =;

// Australia
constexpr EngineAndTier engines_AU[] =;

// Bosnia and Herzegovina
constexpr EngineAndTier engines_BA[] =;

// Belgium
constexpr EngineAndTier engines_BE[] =;

// Bulgaria
constexpr EngineAndTier engines_BG[] =;

// Bahrain
constexpr EngineAndTier engines_BH[] =;

// Burundi
constexpr EngineAndTier engines_BI[] =;

// Brunei
constexpr EngineAndTier engines_BN[] =;

// Bolivia
constexpr EngineAndTier engines_BO[] =;

// Brazil
constexpr EngineAndTier engines_BR[] =;

// Belarus
constexpr EngineAndTier engines_BY[] =;

// Belize
constexpr EngineAndTier engines_BZ[] =;

// Canada
constexpr EngineAndTier engines_CA[] =;

// Switzerland
constexpr EngineAndTier engines_CH[] =;

// Chile
constexpr EngineAndTier engines_CL[] =;

// China
constexpr EngineAndTier engines_CN[] =;

// Colombia
constexpr EngineAndTier engines_CO[] =;

// Costa Rica
constexpr EngineAndTier engines_CR[] =;

// Republic of Cyprus
constexpr EngineAndTier engines_CY[] =;

// Czech Republic
constexpr EngineAndTier engines_CZ[] =;

// Germany
constexpr EngineAndTier engines_DE[] =;

// Denmark
constexpr EngineAndTier engines_DK[] =;


// Dominican Republic
constexpr EngineAndTier engines_DO[] =;

// Algeria
constexpr EngineAndTier engines_DZ[] =;

// Ecuador
constexpr EngineAndTier engines_EC[] =;

// Estonia
constexpr EngineAndTier engines_EE[] =;

// Egypt
constexpr EngineAndTier engines_EG[] =;

// Spain
constexpr EngineAndTier engines_ES[] =;

// Finland
constexpr EngineAndTier engines_FI[] =;

// Faroe Islands
constexpr EngineAndTier engines_FO[] =;

// France
constexpr EngineAndTier engines_FR[] =;

// United Kingdom
constexpr EngineAndTier engines_GB[] =;

// Greece
constexpr EngineAndTier engines_GR[] =;

// Guatemala
constexpr EngineAndTier engines_GT[] =;

// Hong Kong
constexpr EngineAndTier engines_HK[] =;

// Honduras
constexpr EngineAndTier engines_HN[] =;

// Croatia
constexpr EngineAndTier engines_HR[] =;

// Hungary
constexpr EngineAndTier engines_HU[] =;

// Indonesia
constexpr EngineAndTier engines_ID[] =;

// Ireland
constexpr EngineAndTier engines_IE[] =;

// Israel
constexpr EngineAndTier engines_IL[] =;

// India
constexpr EngineAndTier engines_IN[] =;

// Iraq
constexpr EngineAndTier engines_IQ[] =;

// Iran
constexpr EngineAndTier engines_IR[] =;

// Iceland
constexpr EngineAndTier engines_IS[] =;

// Italy
constexpr EngineAndTier engines_IT[] =;

// Jamaica
constexpr EngineAndTier engines_JM[] =;

// Jordan
constexpr EngineAndTier engines_JO[] =;

// Japan
constexpr EngineAndTier engines_JP[] =;

// Kenya
constexpr EngineAndTier engines_KE[] =;

// South Korea
constexpr EngineAndTier engines_KR[] =;

// Kuwait
constexpr EngineAndTier engines_KW[] =;

// Kazakhstan
constexpr EngineAndTier engines_KZ[] =;

// Lebanon
constexpr EngineAndTier engines_LB[] =;

// Liechtenstein
constexpr EngineAndTier engines_LI[] =;

// Lithuania
constexpr EngineAndTier engines_LT[] =;

// Luxembourg
constexpr EngineAndTier engines_LU[] =;

// Latvia
constexpr EngineAndTier engines_LV[] =;

// Libya
constexpr EngineAndTier engines_LY[] =;

// Morocco
constexpr EngineAndTier engines_MA[] =;

// Monaco
constexpr EngineAndTier engines_MC[] =;

// Moldova
constexpr EngineAndTier engines_MD[] =;

// Montenegro
constexpr EngineAndTier engines_ME[] =;

// Macedonia
constexpr EngineAndTier engines_MK[] =;

// Malta
constexpr EngineAndTier engines_MT[] =;

// Mexico
constexpr EngineAndTier engines_MX[] =;

// Malaysia
constexpr EngineAndTier engines_MY[] =;

// Nicaragua
constexpr EngineAndTier engines_NI[] =;

// Netherlands
constexpr EngineAndTier engines_NL[] =;

// Norway
constexpr EngineAndTier engines_NO[] =;

// New Zealand
constexpr EngineAndTier engines_NZ[] =;

// Oman
constexpr EngineAndTier engines_OM[] =;

// Panama
constexpr EngineAndTier engines_PA[] =;

// Peru
constexpr EngineAndTier engines_PE[] =;

// Philippines
constexpr EngineAndTier engines_PH[] =;

// Pakistan
constexpr EngineAndTier engines_PK[] =;

// Poland
constexpr EngineAndTier engines_PL[] =;

// Puerto Rico
constexpr EngineAndTier engines_PR[] =;

// Portugal
constexpr EngineAndTier engines_PT[] =;

// Paraguay
constexpr EngineAndTier engines_PY[] =;

// Qatar
constexpr EngineAndTier engines_QA[] =;

// Romania
constexpr EngineAndTier engines_RO[] =;

// Serbia
constexpr EngineAndTier engines_RS[] =;

// Russia
constexpr EngineAndTier engines_RU[] =;

// Rwanda
constexpr EngineAndTier engines_RW[] =;

// Saudi Arabia
constexpr EngineAndTier engines_SA[] =;

// Sweden
constexpr EngineAndTier engines_SE[] =;

// Singapore
constexpr EngineAndTier engines_SG[] =;

// Slovenia
constexpr EngineAndTier engines_SI[] =;

// Slovakia
constexpr EngineAndTier engines_SK[] =;

// El Salvador
constexpr EngineAndTier engines_SV[] =;

// Syria
constexpr EngineAndTier engines_SY[] =;

// Thailand
constexpr EngineAndTier engines_TH[] =;

// Tunisia
constexpr EngineAndTier engines_TN[] =;

// Turkey
constexpr EngineAndTier engines_TR[] =;

// Trinidad and Tobago
constexpr EngineAndTier engines_TT[] =;

// Taiwan
constexpr EngineAndTier engines_TW[] =;

// Tanzania
constexpr EngineAndTier engines_TZ[] =;

// Ukraine
constexpr EngineAndTier engines_UA[] =;

// United States
constexpr EngineAndTier engines_US[] =;

// Uruguay
constexpr EngineAndTier engines_UY[] =;

// Venezuela
constexpr EngineAndTier engines_VE[] =;

// Vietnam
constexpr EngineAndTier engines_VN[] =;

// Yemen
constexpr EngineAndTier engines_YE[] =;

// South Africa
constexpr EngineAndTier engines_ZA[] =;

// Zimbabwe
constexpr EngineAndTier engines_ZW[] =;

// clang-format on
// ----------------------------------------------------------------------------

const std::vector<EngineAndTier> GetPrepopulationSetFromCountryID(
    int country_id) {}