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

Unified Diff: components/search_engines/template_url.h

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
« no previous file with comments | « components/search_engines/search_terms_data.cc ('k') | components/search_engines/template_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/template_url.h
diff --git a/components/search_engines/template_url.h b/components/search_engines/template_url.h
index 73006be66b632856b86a2d79d5b8f5f5d9115883..20919cf7fbf2ce40ebea81ce541ec19706d90c7e 100644
--- a/components/search_engines/template_url.h
+++ b/components/search_engines/template_url.h
@@ -523,7 +523,10 @@ class TemplateURL {
// Generates a suitable keyword for the specified url, which must be valid.
// This is guaranteed not to return an empty string, since TemplateURLs should
// never have an empty keyword.
- static base::string16 GenerateKeyword(const GURL& url);
+ // |accept_languages| is a list of languages, which will be used in
+ // IDN-decoding of |url|'s hostname.
+ static base::string16 GenerateKeyword(const GURL& url,
+ const std::string& accept_languages);
// Generates a favicon URL from the specified url.
static GURL GenerateFaviconURL(const GURL& url);
« no previous file with comments | « components/search_engines/search_terms_data.cc ('k') | components/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698