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

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

Issue 346013: Remove tapuz.co.il from search provider list since it isn't a search provider. (Closed)
Patch Set: Bump data version Created 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 5 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <locale.h> 8 #include <locale.h>
9 #endif 9 #endif
10 10
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 const PrepopulatedEngine tango = { 1623 const PrepopulatedEngine tango = {
1624 L"Tango", 1624 L"Tango",
1625 L"tango.hu", 1625 L"tango.hu",
1626 "http://tango.hu/favicon.ico", 1626 "http://tango.hu/favicon.ico",
1627 L"http://tango.hu/search.php?q={searchTerms}", 1627 L"http://tango.hu/search.php?q={searchTerms}",
1628 "windows-1250", 1628 "windows-1250",
1629 NULL, 1629 NULL,
1630 58, 1630 58,
1631 }; 1631 };
1632 1632
1633 const PrepopulatedEngine tapuz = {
1634 L"\x05ea\x05e4\x05d5\x05d6 \x05d0\x05e0\x05e9\x05d9\x05dd",
1635 L"tapuz.co.il",
1636 "http://www.tapuz.co.il/favicon.ico",
1637 L"http://www.tapuz.co.il/search/search.asp?q={searchTerms}",
1638 "UTF-8",
1639 NULL,
1640 57,
1641 };
1642
1643 const PrepopulatedEngine terra_ar = { 1633 const PrepopulatedEngine terra_ar = {
1644 L"Terra Argentina", 1634 L"Terra Argentina",
1645 L"terra.com.ar", 1635 L"terra.com.ar",
1646 "http://buscar.terra.com.ar/favicon.ico", 1636 "http://buscar.terra.com.ar/favicon.ico",
1647 L"http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search", 1637 L"http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search",
1648 "ISO-8859-1", 1638 "ISO-8859-1",
1649 NULL, 1639 NULL,
1650 90, 1640 90,
1651 }; 1641 };
1652 1642
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
2437 const PrepopulatedEngine* engines_HU[] = { &google, &tango, &ok, &live_hu_HU, }; 2427 const PrepopulatedEngine* engines_HU[] = { &google, &tango, &ok, &live_hu_HU, };
2438 2428
2439 // Indonesia 2429 // Indonesia
2440 const PrepopulatedEngine* engines_ID[] = { &google, &yahoo_id, &live_en_ID, }; 2430 const PrepopulatedEngine* engines_ID[] = { &google, &yahoo_id, &live_en_ID, };
2441 2431
2442 // Ireland 2432 // Ireland
2443 const PrepopulatedEngine* engines_IE[] = { &google, &yahoo_uk, &msn_en_IE, }; 2433 const PrepopulatedEngine* engines_IE[] = { &google, &yahoo_uk, &msn_en_IE, };
2444 2434
2445 // Israel 2435 // Israel
2446 const PrepopulatedEngine* engines_IL[] = 2436 const PrepopulatedEngine* engines_IL[] =
2447 { &google, &walla, &nana10, &tapuz, &msn_he_IL, }; 2437 { &google, &walla, &nana10, &msn_he_IL, };
2448 2438
2449 // India 2439 // India
2450 const PrepopulatedEngine* engines_IN[] = 2440 const PrepopulatedEngine* engines_IN[] =
2451 { &google, &yahoo_in, &msn_en_IN, &rediff, &guruji, }; 2441 { &google, &yahoo_in, &msn_en_IN, &rediff, &guruji, };
2452 2442
2453 // Iraq 2443 // Iraq
2454 const PrepopulatedEngine* engines_IQ[] = 2444 const PrepopulatedEngine* engines_IQ[] =
2455 { &google, &maktoob, &yamli, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, }; 2445 { &google, &maktoob, &yamli, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, };
2456 2446
2457 // Iran 2447 // Iran
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
3205 } // namespace 3195 } // namespace
3206 3196
3207 namespace TemplateURLPrepopulateData { 3197 namespace TemplateURLPrepopulateData {
3208 3198
3209 void RegisterUserPrefs(PrefService* prefs) { 3199 void RegisterUserPrefs(PrefService* prefs) {
3210 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, -1); 3200 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, -1);
3211 prefs->RegisterIntegerPref(prefs::kCountryIDAtInstall, kCountryIDUnknown); 3201 prefs->RegisterIntegerPref(prefs::kCountryIDAtInstall, kCountryIDUnknown);
3212 } 3202 }
3213 3203
3214 int GetDataVersion() { 3204 int GetDataVersion() {
3215 return 24; // Increment this if you change the above data in ways that mean 3205 return 25; // Increment this if you change the above data in ways that mean
3216 // users with existing data should get a new version. 3206 // users with existing data should get a new version.
3217 } 3207 }
3218 3208
3219 void GetPrepopulatedEngines(PrefService* prefs, 3209 void GetPrepopulatedEngines(PrefService* prefs,
3220 std::vector<TemplateURL*>* t_urls, 3210 std::vector<TemplateURL*>* t_urls,
3221 size_t* default_search_provider_index) { 3211 size_t* default_search_provider_index) {
3222 const PrepopulatedEngine** engines; 3212 const PrepopulatedEngine** engines;
3223 size_t num_engines; 3213 size_t num_engines;
3224 GetPrepopulationSetFromCountryID(prefs, &engines, &num_engines); 3214 GetPrepopulationSetFromCountryID(prefs, &engines, &num_engines);
3225 *default_search_provider_index = 0; 3215 *default_search_provider_index = 0;
(...skipping 15 matching lines...) Expand all
3241 new_turl->set_date_created(Time()); 3231 new_turl->set_date_created(Time());
3242 std::vector<std::string> turl_encodings; 3232 std::vector<std::string> turl_encodings;
3243 turl_encodings.push_back(engines[i]->encoding); 3233 turl_encodings.push_back(engines[i]->encoding);
3244 new_turl->set_input_encodings(turl_encodings); 3234 new_turl->set_input_encodings(turl_encodings);
3245 new_turl->set_prepopulate_id(engines[i]->id); 3235 new_turl->set_prepopulate_id(engines[i]->id);
3246 t_urls->push_back(new_turl); 3236 t_urls->push_back(new_turl);
3247 } 3237 }
3248 } 3238 }
3249 3239
3250 } // namespace TemplateURLPrepopulateData 3240 } // namespace TemplateURLPrepopulateData
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698