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

Unified Diff: components/omnibox/browser/autocomplete_match.h

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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/omnibox/browser/autocomplete_match.h
diff --git a/components/omnibox/browser/autocomplete_match.h b/components/omnibox/browser/autocomplete_match.h
index 753c43a7729870a99c524d6bed67504e09de71c6..d621877eb64f3d012b5a277bc9db9b0bc8c48248 100644
--- a/components/omnibox/browser/autocomplete_match.h
+++ b/components/omnibox/browser/autocomplete_match.h
@@ -205,29 +205,23 @@ struct AutocompleteMatch {
// starts with any the terms in input.terms_prefixed_by_http_or_https(), we
// avoid converting an HTTPS scheme to HTTP. This means URLs that differ
// only by these schemes won't be marked as dupes, since the distinction
- // seems to matter to the user. |languages| is used to format punycoded
- // domain names to UTF-8 for the aforementioned duplicate detection.
+ // seems to matter to the user.
static GURL GURLToStrippedGURL(const GURL& url,
const AutocompleteInput& input,
- const std::string& languages,
TemplateURLService* template_url_service,
const base::string16& keyword);
// Computes the stripped destination URL (via GURLToStrippedGURL()) and
- // stores the result in |stripped_destination_url|. |input| and |languages|
- // are used for the same purpose as in GURLToStrippedGURL().
- void ComputeStrippedDestinationURL(
- const AutocompleteInput& input,
- const std::string& languages,
- TemplateURLService* template_url_service);
+ // stores the result in |stripped_destination_url|. |input| is used for the
+ // same purpose as in GURLToStrippedGURL().
+ void ComputeStrippedDestinationURL(const AutocompleteInput& input,
+ TemplateURLService* template_url_service);
// Sets |allowed_to_be_default_match| to true if this match is effectively
// the URL-what-you-typed match (i.e., would be dupped against the UWYT
- // match when AutocompleteResult merges matches). |languages| is used
- // for the same purpose as in GURLToStrippedGURL().
+ // match when AutocompleteResult merges matches).
void EnsureUWYTIsAllowedToBeDefault(
const AutocompleteInput& input,
- const std::string& languages,
TemplateURLService* template_url_service);
// Gets data relevant to whether there should be any special keyword-related
« no previous file with comments | « components/omnibox/browser/autocomplete_controller.cc ('k') | components/omnibox/browser/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698