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

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

Issue 463: Merge r1480 into the 149 line to fix some default search engines in ... (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_official_branch/src/
Patch Set: Created 12 years, 3 months 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 | Annotate | Revision Log
« 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 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 NULL, 349 NULL,
350 91, 350 91,
351 }; 351 };
352 352
353 const PrepopulatedEngine daum = { 353 const PrepopulatedEngine daum = {
354 L"Daum", 354 L"Daum",
355 L"daum.net", 355 L"daum.net",
356 L"http://search.daum.net/favicon.ico", 356 L"http://search.daum.net/favicon.ico",
357 L"http://search.daum.net/search?q={searchTerms}", 357 L"http://search.daum.net/search?q={searchTerms}",
358 "EUC-KR", 358 "EUC-KR",
359 L"http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}", 359 // Response is in EUC-KR and is labelled as such in HTTP C-T header.
360 // L"http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}",
361 // Until http://b/1293145 is fixed or we figure out how to get responses
362 // in UTF-8, disable it.
363 NULL,
360 68, 364 68,
361 }; 365 };
362 366
363 const PrepopulatedEngine delfi_ee = { 367 const PrepopulatedEngine delfi_ee = {
364 L"DELFI", 368 L"DELFI",
365 L"delfi.ee", 369 L"delfi.ee",
366 L"http://g.delfi.ee/s/search.png", 370 L"http://g.delfi.ee/s/search.png",
367 L"http://otsing.delfi.ee/i.php?q={searchTerms}", 371 L"http://otsing.delfi.ee/i.php?q={searchTerms}",
368 "ISO-8859-1", 372 "ISO-8859-1",
369 NULL, 373 NULL,
(...skipping 29 matching lines...) Expand all
399 NULL, 403 NULL,
400 60, 404 60,
401 }; 405 };
402 406
403 const PrepopulatedEngine empas = { 407 const PrepopulatedEngine empas = {
404 L"\xc5e0\xd30c\xc2a4", 408 L"\xc5e0\xd30c\xc2a4",
405 L"empas.com", 409 L"empas.com",
406 L"http://search.empas.com/favicon.ico", 410 L"http://search.empas.com/favicon.ico",
407 L"http://search.empas.com/search/all.html?q={searchTerms}", 411 L"http://search.empas.com/search/all.html?q={searchTerms}",
408 "EUC-KR", 412 "EUC-KR",
413 // http://www.empas.com/ac/do.tsp?q={searchTerms}
414 // returns non-Firefox JSON. searchTerms needs to be in Java notation
415 // (\uAC00\uAC01).
409 NULL, 416 NULL,
410 70, 417 70,
411 }; 418 };
412 419
413 const PrepopulatedEngine eniro_dk = { 420 const PrepopulatedEngine eniro_dk = {
414 L"Eniro", 421 L"Eniro",
415 L"eniro.dk", 422 L"eniro.dk",
416 L"http://eniro.dk/favicon.ico", 423 L"http://eniro.dk/favicon.ico",
417 L"http://eniro.dk/query?search_word={searchTerms}&what=web_local", 424 L"http://eniro.dk/query?search_word={searchTerms}&what=web_local",
418 "ISO-8859-1", 425 "ISO-8859-1",
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 NULL, 914 NULL,
908 88, 915 88,
909 }; 916 };
910 917
911 const PrepopulatedEngine meta = { 918 const PrepopulatedEngine meta = {
912 L"<META>", 919 L"<META>",
913 L"meta.ua", 920 L"meta.ua",
914 L"http://meta.ua/favicon.ico", 921 L"http://meta.ua/favicon.ico",
915 L"http://meta.ua/search.asp?q={searchTerms}", 922 L"http://meta.ua/search.asp?q={searchTerms}",
916 "windows-1251", 923 "windows-1251",
917 L"http://meta.ua/suggestions/?output=fxjson&q={searchTerms}", 924 L"http://meta.ua/suggestions/?output=fxjson&oe=utf-8&q={searchTerms}",
918 102, 925 102,
919 }; 926 };
920 927
921 const PrepopulatedEngine msn = { 928 const PrepopulatedEngine msn = {
922 L"MSN", 929 L"MSN",
923 L"msn.com", 930 L"msn.com",
924 L"http://search.msn.com/s/wlflag.ico", 931 L"http://search.msn.com/s/wlflag.ico",
925 L"http://search.msn.com/results.aspx?q={searchTerms}", 932 L"http://search.msn.com/results.aspx?q={searchTerms}",
926 "UTF-8", 933 "UTF-8",
927 NULL, 934 NULL,
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 L"http://nate.search.empas.com/search/all.html?q={searchTerms}", 1355 L"http://nate.search.empas.com/search/all.html?q={searchTerms}",
1349 "EUC-KR", 1356 "EUC-KR",
1350 NULL, 1357 NULL,
1351 69, 1358 69,
1352 }; 1359 };
1353 1360
1354 const PrepopulatedEngine naver = { 1361 const PrepopulatedEngine naver = {
1355 L"\xb124\xc774\xbc84", 1362 L"\xb124\xc774\xbc84",
1356 L"naver.com", 1363 L"naver.com",
1357 L"http://search.naver.com/favicon.ico", 1364 L"http://search.naver.com/favicon.ico",
1358 L"http://search.naver.com/search.naver?query={searchTerms}", 1365 L"http://search.naver.com/search.naver?ie={inputEncoding}"
1359 "EUC-KR", 1366 L"&query={searchTerms}",
1360 L"http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&" 1367 "UTF-8",
1368 L"http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&"
1361 L"q={searchTerms}", 1369 L"q={searchTerms}",
1362 67, 1370 67,
1363 }; 1371 };
1364 1372
1365 const PrepopulatedEngine neti = { 1373 const PrepopulatedEngine neti = {
1366 L"NETI", 1374 L"NETI",
1367 L"neti.ee", 1375 L"neti.ee",
1368 L"http://www.neti.ee/favicon.ico", 1376 L"http://www.neti.ee/favicon.ico",
1369 L"http://www.neti.ee/cgi-bin/otsing?query={searchTerms}", 1377 L"http://www.neti.ee/cgi-bin/otsing?query={searchTerms}",
1370 "ISO-8859-1", 1378 "ISO-8859-1",
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 const PrepopulatedEngine yahoo = { 1815 const PrepopulatedEngine yahoo = {
1808 L"Yahoo!", 1816 L"Yahoo!",
1809 L"yahoo.com", 1817 L"yahoo.com",
1810 L"http://search.yahoo.com/favicon.ico", 1818 L"http://search.yahoo.com/favicon.ico",
1811 L"http://search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1819 L"http://search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1812 "UTF-8", 1820 "UTF-8",
1813 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1821 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}",
1814 2, 1822 2,
1815 }; 1823 };
1816 1824
1825 // For regional Yahoo variants without region-specific suggestion service,
1826 // suggestion is disabled. For some of them, we might consider
1827 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk).
1817 const PrepopulatedEngine yahoo_ar = { 1828 const PrepopulatedEngine yahoo_ar = {
1818 L"Yahoo! Argentina", 1829 L"Yahoo! Argentina",
1819 L"ar.yahoo.com", 1830 L"ar.yahoo.com",
1820 L"http://ar.search.yahoo.com/favicon.ico", 1831 L"http://ar.search.yahoo.com/favicon.ico",
1821 L"http://ar.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1832 L"http://ar.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1822 "UTF-8", 1833 "UTF-8",
1823 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1834 L"http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?command={searchTerms}&"
1835 L"output=fxjson",
1824 2, 1836 2,
1825 }; 1837 };
1826 1838
1827 const PrepopulatedEngine yahoo_at = { 1839 const PrepopulatedEngine yahoo_at = {
1828 L"Yahoo! Suche", 1840 L"Yahoo! Suche",
1829 L"at.yahoo.com", 1841 L"at.yahoo.com",
1830 L"http://at.search.yahoo.com/favicon.ico", 1842 L"http://at.search.yahoo.com/favicon.ico",
1831 L"http://at.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1843 L"http://at.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1832 "UTF-8", 1844 "UTF-8",
1833 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1845 NULL,
1834 2, 1846 2,
1835 }; 1847 };
1836 1848
1837 const PrepopulatedEngine yahoo_au = { 1849 const PrepopulatedEngine yahoo_au = {
1838 L"Yahoo!7", 1850 L"Yahoo!7",
1839 L"au.yahoo.com", 1851 L"au.yahoo.com",
1840 L"http://au.search.yahoo.com/favicon.ico", 1852 L"http://au.search.yahoo.com/favicon.ico",
1841 L"http://au.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1853 L"http://au.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1842 "UTF-8", 1854 "UTF-8",
1843 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1855 L"http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?command={searchTerms}&"
1856 L"output=fxjson",
1844 2, 1857 2,
1845 }; 1858 };
1846 1859
1847 const PrepopulatedEngine yahoo_br = { 1860 const PrepopulatedEngine yahoo_br = {
1848 L"Yahoo! Brasil", 1861 L"Yahoo! Brasil",
1849 L"br.yahoo.com", 1862 L"br.yahoo.com",
1850 L"http://br.search.yahoo.com/favicon.ico", 1863 L"http://br.search.yahoo.com/favicon.ico",
1851 L"http://br.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1864 L"http://br.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1852 "UTF-8", 1865 "UTF-8",
1853 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1866 L"http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?command={searchTerms}&"
1867 L"output=fxjson",
1854 2, 1868 2,
1855 }; 1869 };
1856 1870
1857 const PrepopulatedEngine yahoo_ca = { 1871 const PrepopulatedEngine yahoo_ca = {
1858 L"Yahoo! Canada", 1872 L"Yahoo! Canada",
1859 L"ca.yahoo.com", 1873 L"ca.yahoo.com",
1860 L"http://ca.search.yahoo.com/favicon.ico", 1874 L"http://ca.search.yahoo.com/favicon.ico",
1861 L"http://ca.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1875 L"http://ca.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1862 "UTF-8", 1876 "UTF-8",
1863 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1877 L"http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&"
1878 L"command={searchTerms}",
1864 2, 1879 2,
1865 }; 1880 };
1866 1881
1867 const PrepopulatedEngine yahoo_ch = { 1882 const PrepopulatedEngine yahoo_ch = {
1868 L"Yahoo! Suche", 1883 L"Yahoo! Suche",
1869 L"ch.yahoo.com", 1884 L"ch.yahoo.com",
1870 L"http://ch.search.yahoo.com/favicon.ico", 1885 L"http://ch.search.yahoo.com/favicon.ico",
1871 L"http://ch.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1886 L"http://ch.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1872 "UTF-8", 1887 "UTF-8",
1873 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1888 NULL,
1874 2, 1889 2,
1875 }; 1890 };
1876 1891
1877 const PrepopulatedEngine yahoo_cl = { 1892 const PrepopulatedEngine yahoo_cl = {
1878 L"Yahoo! Chile", 1893 L"Yahoo! Chile",
1879 L"cl.yahoo.com", 1894 L"cl.yahoo.com",
1880 L"http://cl.search.yahoo.com/favicon.ico", 1895 L"http://cl.search.yahoo.com/favicon.ico",
1881 L"http://cl.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1896 L"http://cl.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1882 "UTF-8", 1897 "UTF-8",
1883 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1898 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1899 L"command={searchTerms}",
1884 2, 1900 2,
1885 }; 1901 };
1886 1902
1887 const PrepopulatedEngine yahoo_cn = { 1903 const PrepopulatedEngine yahoo_cn = {
1888 L"\x4e2d\x56fd\x96c5\x864e", 1904 L"\x4e2d\x56fd\x96c5\x864e",
1889 L"cn.yahoo.com", 1905 L"cn.yahoo.com",
1890 L"http://search.cn.yahoo.com/favicon.ico", 1906 L"http://search.cn.yahoo.com/favicon.ico",
1891 L"http://search.cn.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1907 L"http://search.cn.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1892 "GB2312", 1908 "GB2312",
1893 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1909 // http://cn.yahoo.com/cnsuggestion/suggestion.inc.php?of=fxjson&query=
1910 // returns in a proprietary format ('|' delimeted word list).
1911 NULL,
1894 2, 1912 2,
1895 }; 1913 };
1896 1914
1897 const PrepopulatedEngine yahoo_co = { 1915 const PrepopulatedEngine yahoo_co = {
1898 L"Yahoo! Colombia", 1916 L"Yahoo! Colombia",
1899 L"co.yahoo.com", 1917 L"co.yahoo.com",
1900 L"http://co.search.yahoo.com/favicon.ico", 1918 L"http://co.search.yahoo.com/favicon.ico",
1901 L"http://co.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1919 L"http://co.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1902 "UTF-8", 1920 "UTF-8",
1903 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1921 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1922 L"command={searchTerms}",
1904 2, 1923 2,
1905 }; 1924 };
1906 1925
1907 const PrepopulatedEngine yahoo_de = { 1926 const PrepopulatedEngine yahoo_de = {
1908 L"Yahoo! Deutschland", 1927 L"Yahoo! Deutschland",
1909 L"de.yahoo.com", 1928 L"de.yahoo.com",
1910 L"http://de.search.yahoo.com/favicon.ico", 1929 L"http://de.search.yahoo.com/favicon.ico",
1911 L"http://de.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1930 L"http://de.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1912 "UTF-8", 1931 "UTF-8",
1913 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1932 L"http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?command={searchTerms}&"
1933 L"output=fxjson",
1914 2, 1934 2,
1915 }; 1935 };
1916 1936
1917 const PrepopulatedEngine yahoo_dk = { 1937 const PrepopulatedEngine yahoo_dk = {
1918 L"Yahoo! Danmark", 1938 L"Yahoo! Danmark",
1919 L"dk.yahoo.com", 1939 L"dk.yahoo.com",
1920 L"http://dk.search.yahoo.com/favicon.ico", 1940 L"http://dk.search.yahoo.com/favicon.ico",
1921 L"http://dk.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1941 L"http://dk.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1922 "UTF-8", 1942 "UTF-8",
1923 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1943 NULL,
1924 2, 1944 2,
1925 }; 1945 };
1926 1946
1927 const PrepopulatedEngine yahoo_es = { 1947 const PrepopulatedEngine yahoo_es = {
1928 L"Yahoo! Espa" L"\x00f1" L"a", 1948 L"Yahoo! Espa" L"\x00f1" L"a",
1929 L"es.yahoo.com", 1949 L"es.yahoo.com",
1930 L"http://es.search.yahoo.com/favicon.ico", 1950 L"http://es.search.yahoo.com/favicon.ico",
1931 L"http://es.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1951 L"http://es.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1932 "UTF-8", 1952 "UTF-8",
1933 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1953 L"http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?command={searchTerms}&"
1954 L"output=fxjson",
1934 2, 1955 2,
1935 }; 1956 };
1936 1957
1937 const PrepopulatedEngine yahoo_fi = { 1958 const PrepopulatedEngine yahoo_fi = {
1938 L"Yahoo!-haku", 1959 L"Yahoo!-haku",
1939 L"fi.yahoo.com", 1960 L"fi.yahoo.com",
1940 L"http://fi.search.yahoo.com/favicon.ico", 1961 L"http://fi.search.yahoo.com/favicon.ico",
1941 L"http://fi.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1962 L"http://fi.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1942 "UTF-8", 1963 "UTF-8",
1943 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1964 NULL,
1944 2, 1965 2,
1945 }; 1966 };
1946 1967
1947 const PrepopulatedEngine yahoo_fr = { 1968 const PrepopulatedEngine yahoo_fr = {
1948 L"Yahoo! France", 1969 L"Yahoo! France",
1949 L"fr.yahoo.com", 1970 L"fr.yahoo.com",
1950 L"http://fr.search.yahoo.com/favicon.ico", 1971 L"http://fr.search.yahoo.com/favicon.ico",
1951 L"http://fr.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1972 L"http://fr.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1952 "UTF-8", 1973 "UTF-8",
1953 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1974 L"http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?command={searchTerms}&"
1975 L"output=fxjson",
1954 2, 1976 2,
1955 }; 1977 };
1956 1978
1957 const PrepopulatedEngine yahoo_hk = { 1979 const PrepopulatedEngine yahoo_hk = {
1958 L"Yahoo! Hong Kong", 1980 L"Yahoo! Hong Kong",
1959 L"hk.yahoo.com", 1981 L"hk.yahoo.com",
1960 L"http://hk.search.yahoo.com/favicon.ico", 1982 L"http://hk.search.yahoo.com/favicon.ico",
1961 L"http://hk.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1983 L"http://hk.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1962 "UTF-8", 1984 "UTF-8",
1963 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1985 // http://history.hk.search.yahoo.com/ac/ac_msearch.php?query={searchTerms}
1986 // returns a JSON with key-value pairs. Setting parameters (ot, of, output)
1987 // to fxjson,json, or js doesn't help.
1988 NULL,
1964 2, 1989 2,
1965 }; 1990 };
1966 1991
1967 const PrepopulatedEngine yahoo_id = { 1992 const PrepopulatedEngine yahoo_id = {
1968 L"Yahoo! Indonesia", 1993 L"Yahoo! Indonesia",
1969 L"id.yahoo.com", 1994 L"id.yahoo.com",
1970 L"http://id.search.yahoo.com/favicon.ico", 1995 L"http://id.search.yahoo.com/favicon.ico",
1971 L"http://id.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 1996 L"http://id.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1972 "UTF-8", 1997 "UTF-8",
1973 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1998 L"http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?command={searchTerms}&"
1999 L"output=fxjson",
1974 2, 2000 2,
1975 }; 2001 };
1976 2002
1977 const PrepopulatedEngine yahoo_in = { 2003 const PrepopulatedEngine yahoo_in = {
1978 L"Yahoo! India", 2004 L"Yahoo! India",
1979 L"in.yahoo.com", 2005 L"in.yahoo.com",
1980 L"http://in.search.yahoo.com/favicon.ico", 2006 L"http://in.search.yahoo.com/favicon.ico",
1981 L"http://in.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2007 L"http://in.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1982 "UTF-8", 2008 "UTF-8",
1983 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2009 L"http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?command={searchTerms}&"
2010 L"output=fxjson",
1984 2, 2011 2,
1985 }; 2012 };
1986 2013
1987 const PrepopulatedEngine yahoo_it = { 2014 const PrepopulatedEngine yahoo_it = {
1988 L"Yahoo! Italia", 2015 L"Yahoo! Italia",
1989 L"it.yahoo.com", 2016 L"it.yahoo.com",
1990 L"http://it.search.yahoo.com/favicon.ico", 2017 L"http://it.search.yahoo.com/favicon.ico",
1991 L"http://it.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2018 L"http://it.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
1992 "UTF-8", 2019 "UTF-8",
1993 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2020 L"http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?command={searchTerms}&"
2021 L"output=fxjson",
1994 2, 2022 2,
1995 }; 2023 };
1996 2024
1997 const PrepopulatedEngine yahoo_jp = { 2025 const PrepopulatedEngine yahoo_jp = {
1998 L"Yahoo! JAPAN", 2026 L"Yahoo! JAPAN",
1999 L"yahoo.co.jp", 2027 L"yahoo.co.jp",
2000 L"http://search.yahoo.co.jp/favicon.ico", 2028 L"http://search.yahoo.co.jp/favicon.ico",
2001 L"http://search.yahoo.co.jp/search?ei={inputEncoding}&p={searchTerms}", 2029 L"http://search.yahoo.co.jp/search?ei={inputEncoding}&p={searchTerms}",
2002 "UTF-8", 2030 "UTF-8",
2003 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2031 NULL,
2004 2, 2032 2,
2005 }; 2033 };
2006 2034
2007 const PrepopulatedEngine yahoo_kr = { 2035 const PrepopulatedEngine yahoo_kr = {
2008 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544", 2036 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544",
2009 L"kr.yahoo.com", 2037 L"kr.yahoo.com",
2010 L"http://kr.search.yahoo.com/favicon.ico", 2038 L"http://kr.search.yahoo.com/favicon.ico",
2011 L"http://kr.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2039 L"http://kr.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2012 "UTF-8", 2040 "UTF-8",
2013 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2041 L"http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson"
2042 L"&ei=utf8&eo=utf8&command={searchTerms}",
2014 2, 2043 2,
2015 }; 2044 };
2016 2045
2017 const PrepopulatedEngine yahoo_malaysia = { 2046 const PrepopulatedEngine yahoo_malaysia = {
2018 L"Yahoo! Malaysia", 2047 L"Yahoo! Malaysia",
2019 L"malaysia.yahoo.com", 2048 L"malaysia.yahoo.com",
2020 L"http://malaysia.search.yahoo.com/favicon.ico", 2049 L"http://malaysia.search.yahoo.com/favicon.ico",
2021 L"http://malaysia.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2050 L"http://malaysia.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2022 2051
2023 "UTF-8", 2052 "UTF-8",
2024 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2053 L"http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?command={searchTerms}&"
2054 L"output=fxjson",
2025 2, 2055 2,
2026 }; 2056 };
2027 2057
2028 const PrepopulatedEngine yahoo_mx = { 2058 const PrepopulatedEngine yahoo_mx = {
2029 L"Yahoo! M\x00e9xico", 2059 L"Yahoo! M\x00e9xico",
2030 L"mx.yahoo.com", 2060 L"mx.yahoo.com",
2031 L"http://mx.search.yahoo.com/favicon.ico", 2061 L"http://mx.search.yahoo.com/favicon.ico",
2032 L"http://mx.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2062 L"http://mx.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2033 "UTF-8", 2063 "UTF-8",
2034 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2064 L"http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&"
2065 L"command={searchTerms}",
2035 2, 2066 2,
2036 }; 2067 };
2037 2068
2038 const PrepopulatedEngine yahoo_nl = { 2069 const PrepopulatedEngine yahoo_nl = {
2039 L"Yahoo! Nederland", 2070 L"Yahoo! Nederland",
2040 L"nl.yahoo.com", 2071 L"nl.yahoo.com",
2041 L"http://nl.search.yahoo.com/favicon.ico", 2072 L"http://nl.search.yahoo.com/favicon.ico",
2042 L"http://nl.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2073 L"http://nl.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2043 "UTF-8", 2074 "UTF-8",
2044 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2075 NULL,
2045 2, 2076 2,
2046 }; 2077 };
2047 2078
2048 const PrepopulatedEngine yahoo_no = { 2079 const PrepopulatedEngine yahoo_no = {
2049 L"Yahoo! Norge", 2080 L"Yahoo! Norge",
2050 L"no.yahoo.com", 2081 L"no.yahoo.com",
2051 L"http://no.search.yahoo.com/favicon.ico", 2082 L"http://no.search.yahoo.com/favicon.ico",
2052 L"http://no.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2083 L"http://no.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2053 "UTF-8", 2084 "UTF-8",
2054 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2085 NULL,
2055 2, 2086 2,
2056 }; 2087 };
2057 2088
2058 const PrepopulatedEngine yahoo_nz = { 2089 const PrepopulatedEngine yahoo_nz = {
2059 L"Yahoo!Xtra", 2090 L"Yahoo!Xtra",
2060 L"nz.yahoo.com", 2091 L"nz.yahoo.com",
2061 L"http://sg.search.yahoo.com/favicon.ico", 2092 L"http://nz.search.yahoo.com/favicon.ico",
2062 L"http://sg.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2093 L"http://nz.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2063 "UTF-8", 2094 "UTF-8",
2064 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2095 L"http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?command={searchTerms}&"
2096 L"output=fxjson",
2065 2, 2097 2,
2066 }; 2098 };
2067 2099
2068 const PrepopulatedEngine yahoo_pe = { 2100 const PrepopulatedEngine yahoo_pe = {
2069 L"Yahoo! Per\x00fa", 2101 L"Yahoo! Per\x00fa",
2070 L"pe.yahoo.com", 2102 L"pe.yahoo.com",
2071 L"http://pe.search.yahoo.com/favicon.ico", 2103 L"http://pe.search.yahoo.com/favicon.ico",
2072 L"http://pe.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2104 L"http://pe.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2073 "UTF-8", 2105 "UTF-8",
2074 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2106 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
2107 L"command={searchTerms}",
2075 2, 2108 2,
2076 }; 2109 };
2077 2110
2078 const PrepopulatedEngine yahoo_ph = { 2111 const PrepopulatedEngine yahoo_ph = {
2079 L"Yahoo! Philippines", 2112 L"Yahoo! Philippines",
2080 L"ph.yahoo.com", 2113 L"ph.yahoo.com",
2081 L"http://ph.search.yahoo.com/favicon.ico", 2114 L"http://ph.search.yahoo.com/favicon.ico",
2082 L"http://ph.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2115 L"http://ph.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2083 "UTF-8", 2116 "UTF-8",
2084 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2117 L"http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?command={searchTerms}&"
2118 L"output=fxjson",
2085 2, 2119 2,
2086 }; 2120 };
2087 2121
2088 const PrepopulatedEngine yahoo_qc = { 2122 const PrepopulatedEngine yahoo_qc = {
2089 L"Yahoo! Qu" L"\x00e9" L"bec", 2123 L"Yahoo! Qu" L"\x00e9" L"bec",
2090 L"qc.yahoo.com", 2124 L"qc.yahoo.com",
2091 L"http://qc.search.yahoo.com/favicon.ico", 2125 L"http://qc.search.yahoo.com/favicon.ico",
2092 L"http://qc.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2126 L"http://qc.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2093 "UTF-8", 2127 "UTF-8",
2094 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2128 NULL,
2095 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca. 2129 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca.
2096 }; 2130 };
2097 2131
2098 const PrepopulatedEngine yahoo_ru = { 2132 const PrepopulatedEngine yahoo_ru = {
2099 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438", 2133 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438",
2100 L"ru.yahoo.com", 2134 L"ru.yahoo.com",
2101 L"http://ru.search.yahoo.com/favicon.ico", 2135 L"http://ru.search.yahoo.com/favicon.ico",
2102 L"http://ru.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2136 L"http://ru.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2103 "UTF-8", 2137 "UTF-8",
2104 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2138 NULL,
2105 2, 2139 2,
2106 }; 2140 };
2107 2141
2108 const PrepopulatedEngine yahoo_sg = { 2142 const PrepopulatedEngine yahoo_sg = {
2109 L"Yahoo! Singapore", 2143 L"Yahoo! Singapore",
2110 L"sg.yahoo.com", 2144 L"sg.yahoo.com",
2111 L"http://tw.search.yahoo.com/favicon.ico", 2145 L"http://sg.search.yahoo.com/favicon.ico",
2112 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2146 L"http://sg.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2113 "UTF-8", 2147 "UTF-8",
2114 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2148 L"http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&"
2149 L"command={searchTerms}",
2115 2, 2150 2,
2116 }; 2151 };
2117 2152
2118 const PrepopulatedEngine yahoo_th = { 2153 const PrepopulatedEngine yahoo_th = {
2119 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22", 2154 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22",
2120 L"th.yahoo.com", 2155 L"th.yahoo.com",
2121 L"http://th.search.yahoo.com/favicon.ico", 2156 L"http://th.search.yahoo.com/favicon.ico",
2122 L"http://th.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2157 L"http://th.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2123 "UTF-8", 2158 "UTF-8",
2124 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2159 L"http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&"
2160 L"command={searchTerms}",
2125 2, 2161 2,
2126 }; 2162 };
2127 2163
2128 const PrepopulatedEngine yahoo_tw = { 2164 const PrepopulatedEngine yahoo_tw = {
2129 L"Yahoo!\x5947\x6469", 2165 L"Yahoo!\x5947\x6469",
2130 L"tw.yahoo.com", 2166 L"tw.yahoo.com",
2131 L"http://tw.search.yahoo.com/favicon.ico", 2167 L"http://tw.search.yahoo.com/favicon.ico",
2132 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2168 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2133 "UTF-8", 2169 "UTF-8",
2134 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2170 // "http://tw.yahoo.com/ac/ac_search.php?eo=utf8&of=js&prop=web&query="
2171 // returns a JSON file prepended with 'fxjson={'.
2172 NULL,
2135 2, 2173 2,
2136 }; 2174 };
2137 2175
2138 const PrepopulatedEngine yahoo_uk = { 2176 const PrepopulatedEngine yahoo_uk = {
2139 L"Yahoo! UK & Ireland", 2177 L"Yahoo! UK & Ireland",
2140 L"uk.yahoo.com", 2178 L"uk.yahoo.com",
2141 L"http://uk.search.yahoo.com/favicon.ico", 2179 L"http://uk.search.yahoo.com/favicon.ico",
2142 L"http://uk.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2180 L"http://uk.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2143 "UTF-8", 2181 "UTF-8",
2144 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2182 L"http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?command={searchTerms}&"
2183 L"queryfirst=2&output=fxjson",
2145 2, 2184 2,
2146 }; 2185 };
2147 2186
2148 const PrepopulatedEngine yahoo_ve = { 2187 const PrepopulatedEngine yahoo_ve = {
2149 L"Yahoo! Venezuela", 2188 L"Yahoo! Venezuela",
2150 L"ve.yahoo.com", 2189 L"ve.yahoo.com",
2151 L"http://ve.search.yahoo.com/favicon.ico", 2190 L"http://ve.search.yahoo.com/favicon.ico",
2152 L"http://ve.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2191 L"http://ve.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2153 "UTF-8", 2192 "UTF-8",
2154 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2193 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
2194 L"command={searchTerms}",
2155 2, 2195 2,
2156 }; 2196 };
2157 2197
2158 const PrepopulatedEngine yahoo_vn = { 2198 const PrepopulatedEngine yahoo_vn = {
2159 L"Yahoo! Vi\x1ec7t Nam", 2199 L"Yahoo! Vi\x1ec7t Nam",
2160 L"vn.yahoo.com", 2200 L"vn.yahoo.com",
2161 L"http://vn.search.yahoo.com/favicon.ico", 2201 L"http://vn.search.yahoo.com/favicon.ico",
2162 L"http://vn.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}", 2202 L"http://vn.search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}",
2163 "UTF-8", 2203 "UTF-8",
2164 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 2204 L"http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?command={searchTerms}&"
2205 L"output=fxjson",
2165 2, 2206 2,
2166 }; 2207 };
2167 2208
2168 const PrepopulatedEngine yam = { 2209 const PrepopulatedEngine yam = {
2169 L"\u5929\u7a7a", 2210 L"\u5929\u7a7a",
2170 L"yam.com", 2211 L"yam.com",
2171 L"http://www.yam.com/i/8/sky.ico", 2212 L"http://www.yam.com/i/8/sky.ico",
2172 L"http://search.yam.com/wps?k={searchTerms}", 2213 L"http://search.yam.com/wps?k={searchTerms}",
2173 "Big5", 2214 "Big5",
2174 NULL, 2215 NULL,
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2983 3024
2984 } // namespace 3025 } // namespace
2985 3026
2986 namespace TemplateURLPrepopulateData { 3027 namespace TemplateURLPrepopulateData {
2987 3028
2988 void RegisterUserPrefs(PrefService* prefs) { 3029 void RegisterUserPrefs(PrefService* prefs) {
2989 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, -1); 3030 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, -1);
2990 } 3031 }
2991 3032
2992 int GetDataVersion() { 3033 int GetDataVersion() {
2993 return 12; // Increment this if you change the above data in ways that mean 3034 return 13; // Increment this if you change the above data in ways that mean
2994 // users with existing data should get a new version. 3035 // users with existing data should get a new version.
2995 } 3036 }
2996 3037
2997 void GetPrepopulatedEngines(PrefService* prefs, 3038 void GetPrepopulatedEngines(PrefService* prefs,
2998 std::vector<TemplateURL*>* t_urls, 3039 std::vector<TemplateURL*>* t_urls,
2999 size_t* default_search_provider_index) { 3040 size_t* default_search_provider_index) {
3000 // TODO(pkasting): http://b/1225464 GeoID is not available on Win2k. We'll 3041 // TODO(pkasting): http://b/1225464 GeoID is not available on Win2k. We'll
3001 // need to do something else there. 3042 // need to do something else there.
3002 const PrepopulatedEngine* engines; 3043 const PrepopulatedEngine* engines;
3003 size_t num_engines; 3044 size_t num_engines;
(...skipping 17 matching lines...) Expand all
3021 new_turl->set_date_created(Time()); 3062 new_turl->set_date_created(Time());
3022 std::vector<std::string> turl_encodings; 3063 std::vector<std::string> turl_encodings;
3023 turl_encodings.push_back(engines[i].encoding); 3064 turl_encodings.push_back(engines[i].encoding);
3024 new_turl->set_input_encodings(turl_encodings); 3065 new_turl->set_input_encodings(turl_encodings);
3025 new_turl->set_prepopulate_id(engines[i].id); 3066 new_turl->set_prepopulate_id(engines[i].id);
3026 t_urls->push_back(new_turl); 3067 t_urls->push_back(new_turl);
3027 } 3068 }
3028 } 3069 }
3029 3070
3030 } // namespace TemplateURLPrepopulateData 3071 } // 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