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

Unified Diff: components/search_engines/template_url_service.cc

Issue 1238683003: Unpunycode search keywords and short names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix grammar. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index 12abbe8b29415f6f9269a43349659ea7623576ff..fc889e8a3cd7aa3aa5bdb577cbd62939a898b296 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -2107,7 +2107,8 @@ base::string16 TemplateURLService::UniquifyKeyword(const TemplateURL& turl,
GURL gurl(turl.url());
if (gurl.is_valid() &&
(turl.GetType() != TemplateURL::OMNIBOX_API_EXTENSION)) {
- base::string16 keyword_candidate = TemplateURL::GenerateKeyword(gurl);
+ base::string16 keyword_candidate = TemplateURL::GenerateKeyword(
+ gurl, search_terms_data().GetAcceptLanguages());
if (!GetTemplateURLForKeyword(keyword_candidate))
return keyword_candidate;
}
« no previous file with comments | « components/search_engines/template_url_parser.cc ('k') | components/search_engines/template_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698