summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictoria Lease <violets@google.com>2012-03-29 11:26:09 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-29 11:26:09 -0700
commitaa6bd4d2b2d2ee7322512a1fca60ca40e4a002c8 (patch)
tree0f696b3506c047b1728befacb956c44975722c7f
parentc0297e35d7f687fd499c2daddd65b0f279f924ef (diff)
parente5ce1bc4792003844b2ad60fbe2078f2ab8e1ebe (diff)
downloadpackages_apps_Browser-aa6bd4d2b2d2ee7322512a1fca60ca40e4a002c8.zip
packages_apps_Browser-aa6bd4d2b2d2ee7322512a1fca60ca40e4a002c8.tar.gz
packages_apps_Browser-aa6bd4d2b2d2ee7322512a1fca60ca40e4a002c8.tar.bz2
Merge "Remove "hl=" parameter from incognito-mode GWS searches. It prevents GWS from honoring Accept-language: headers, and can result in degraded search result quality."
-rw-r--r--res/values/all_search_engines.xml4
-rwxr-xr-xtools/get_search_engines.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/res/values/all_search_engines.xml b/res/values/all_search_engines.xml
index 58992a4..da8d3b2 100644
--- a/res/values/all_search_engines.xml
+++ b/res/values/all_search_engines.xml
@@ -208,9 +208,9 @@ http://www.opensearch.org/Specifications/OpenSearch/1.1/Draft_4#OpenSearch_1.1_p
<item>Google</item>
<item>google.com</item>
<item>http://www.google.com/favicon.ico</item>
- <item>http://www.google.com/search?hl={language}&amp;ie={inputEncoding}&amp;source=android-browser&amp;q={searchTerms}</item>
+ <item>http://www.google.com/search?ie={inputEncoding}&amp;source=android-browser&amp;q={searchTerms}</item>
<item>UTF-8</item>
- <item>http://www.google.com/complete/search?hl={language}&amp;client=android&amp;q={searchTerms}</item>
+ <item>http://www.google.com/complete/search?client=android&amp;q={searchTerms}</item>
</string-array>
<string-array name="bing_en_NZ" translatable="false">
<item>Bing</item>
diff --git a/tools/get_search_engines.py b/tools/get_search_engines.py
index 86393f1..17916c8 100755
--- a/tools/get_search_engines.py
+++ b/tools/get_search_engines.py
@@ -39,9 +39,9 @@ locales = ["cs-CZ", "da-DK", "de-AT", "de-CH", "de-DE", "el-GR", "en-AU",
google_data = ["google", "Google", "google.com",
"http://www.google.com/favicon.ico",
- "http://www.google.com/search?hl={language}&amp;ie={inputEncoding}&amp;source=android-browser&amp;q={searchTerms}",
+ "http://www.google.com/search?ie={inputEncoding}&amp;source=android-browser&amp;q={searchTerms}",
"UTF-8",
- "http://www.google.com/complete/search?hl={language}&amp;client=android&amp;q={searchTerms}"]
+ "http://www.google.com/complete/search?client=android&amp;q={searchTerms}"]
class SearchEngineManager(object):
"""Manages list of search engines and creates locale specific lists.