File: generated_marketing_snippets.cc

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (146 lines) | stat: -rw-r--r-- 5,755 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/search_engines/search_engine_choice/search_engine_choice_utils.h"
#include "components/strings/grit/search_engine_descriptions_strings.h"
#include "third_party/search_engines_data/resources/definitions/prepopulated_engines.h"

// This file is generated using
// http://go/chrome-search-engines-marketing-snippets-script.
// Do not modify it manually.
namespace search_engines {
// Implements a function declared in search_engine_choice_utils.h.
int GetMarketingSnippetResourceId(const std::u16string& engine_keyword) {
  if (engine_keyword == TemplateURLPrepopulateData::bing.keyword) {
    return IDS_BING_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::brave.keyword) {
    return IDS_BRAVE_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::duckduckgo.keyword) {
    return IDS_DUCKDUCKGO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::ecosia.keyword) {
    return IDS_ECOSIA_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::google.keyword) {
    return IDS_GOOGLE_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::lilo.keyword) {
    return IDS_LILO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::privacywall.keyword) {
    return IDS_PRIVACYWALL_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::qwant.keyword) {
    return IDS_QWANT_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::seznam.keyword) {
    return IDS_SEZNAM_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::startpage.keyword) {
    return IDS_STARTPAGE_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_ar.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_at.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_au.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_br.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_ca.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_ch.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_cl.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_co.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_de.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_dk.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_emea.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_es.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_fi.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_fr.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_hk.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_id.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_in.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_it.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_jp.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_mx.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_my.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_nl.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_nz.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_pe.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_ph.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_se.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_sg.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_th.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_tr.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_tw.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yahoo_uk.keyword) {
    return IDS_YAHOO_SEARCH_DESCRIPTION;
  }
  if (engine_keyword == TemplateURLPrepopulateData::yep.keyword) {
    return IDS_YEP_SEARCH_DESCRIPTION;
  }
  return -1;
}
}  // namespace search_engines