summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 19:59:11 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 19:59:11 +0000
commitced52850257336648fd357ea294519f5a9f351dd (patch)
tree4eaab721f10f0742ee45a6b5a1a0bd29c8f7d05e /chrome
parent2b4bfd5f91f8c1543114546bb306ab3db322356e (diff)
downloadchromium_src-ced52850257336648fd357ea294519f5a9f351dd.zip
chromium_src-ced52850257336648fd357ea294519f5a9f351dd.tar.gz
chromium_src-ced52850257336648fd357ea294519f5a9f351dd.tar.bz2
Start to update search engine prepopulate data: Hungary and UAE.
Will do more at one time after I get the hang of it. Baby steps. Tango just disappeared from the list, it didn't explicitly say remove, but Alexa describes it as: "Images or video content. May be unsuited to certain users." so I guess it's not really a search engine. BUG=23909 Review URL: http://codereview.chromium.org/380008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/search_engines/template_url_prepopulate_data.cc66
1 files changed, 38 insertions, 28 deletions
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc
index f2a3e2a..1fb7137 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -57,7 +57,7 @@ struct PrepopulatedEngine {
// to appear for one country (e.g. Live Search U.S. English and Spanish), we
// must use two different unique IDs (and different keywords).
//
- // The following unique IDs are available: 66, 93, 103+
+ // The following unique IDs are available: 58, 66, 93, 103+
// NOTE: CHANGE THE ABOVE NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad!
const int id;
};
@@ -297,15 +297,45 @@ const PrepopulatedEngine bigmir = {
33,
};
-const PrepopulatedEngine bing_en_US = { // "en_US" since we'll add more soon
+const PrepopulatedEngine bing_ar_XA = {
+ L"Bing",
+ L"", // bing.com is taken by bing_en_XA.
+ "http://www.bing.com/s/wlflag.ico",
+ L"http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}",
+ "UTF-8",
+ L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
+ 7, // Can't be 3 as this has to appear in the Arabian countries' lists
+ // alongside bing_en_XA.
+};
+
+const PrepopulatedEngine bing_en_US = {
L"Bing",
L"bing.com",
"http://www.bing.com/s/wlflag.ico",
L"http://www.bing.com/search?setmkt=en-US&q={searchTerms}",
"UTF-8",
- L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}&"
- L"form=OSDJAS",
- 3, // Same unique ID as Live, since we'll be replacing it
+ L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
+ 3,
+};
+
+const PrepopulatedEngine bing_en_XA = {
+ L"Bing",
+ L"bing.com",
+ "http://www.bing.com/s/wlflag.ico",
+ L"http://www.bing.com/search?setmkt=en-XA&q={searchTerms}",
+ "UTF-8",
+ L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
+ 3,
+};
+
+const PrepopulatedEngine bing_hu_HU = {
+ L"Bing",
+ L"bing.com",
+ "http://www.bing.com/s/wlflag.ico",
+ L"http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}",
+ "UTF-8",
+ L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
+ 3,
};
const PrepopulatedEngine bluewin = {
@@ -737,16 +767,6 @@ const PrepopulatedEngine live_hr_HR = {
3,
};
-const PrepopulatedEngine live_hu_HU = {
- L"Live Search",
- L"live.com",
- "http://search.live.com/s/wlflag.ico",
- L"http://search.live.com/results.aspx?mkt=hu-HU&q={searchTerms}",
- "UTF-8",
- NULL,
- 3,
-};
-
const PrepopulatedEngine live_it_IT = {
L"Live Search",
L"live.com",
@@ -1620,16 +1640,6 @@ const PrepopulatedEngine t_online = {
49,
};
-const PrepopulatedEngine tango = {
- L"Tango",
- L"tango.hu",
- "http://tango.hu/favicon.ico",
- L"http://tango.hu/search.php?q={searchTerms}",
- "windows-1250",
- NULL,
- 58,
-};
-
const PrepopulatedEngine terra_ar = {
L"Terra Argentina",
L"terra.com.ar",
@@ -2272,7 +2282,7 @@ const PrepopulatedEngine* engines_default[] = { &google, &yahoo, &live, };
// United Arab Emirates
const PrepopulatedEngine* engines_AE[] =
- { &google, &maktoob, &yahoo, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
+ { &google, &yahoo, &bing_en_XA, &bing_ar_XA, &araby, &maktoob };
// Albania
const PrepopulatedEngine* engines_AL[] =
@@ -2424,7 +2434,7 @@ const PrepopulatedEngine* engines_HR[] =
{ &google, &yahoo, &pogodak_hr, &live_hr_HR, };
// Hungary
-const PrepopulatedEngine* engines_HU[] = { &google, &tango, &ok, &live_hu_HU, };
+const PrepopulatedEngine* engines_HU[] = { &google, &ok, &bing_hu_HU, };
// Indonesia
const PrepopulatedEngine* engines_ID[] = { &google, &yahoo_id, &live_en_ID, };
@@ -3202,7 +3212,7 @@ void RegisterUserPrefs(PrefService* prefs) {
}
int GetDataVersion() {
- return 25; // Increment this if you change the above data in ways that mean
+ return 26; // Increment this if you change the above data in ways that mean
// users with existing data should get a new version.
}