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

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

Issue 2966233002: Omnibox UI Experiments: Strip trivial subdomains (Closed)
Patch Set: make cast explicit for windows Created 3 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/omnibox/browser/autocomplete_match.cc
diff --git a/components/omnibox/browser/autocomplete_match.cc b/components/omnibox/browser/autocomplete_match.cc
index 5837c8d00f5ccf023a111de12810e34c9798cfe9..09f194d64e1b3a8ad03cf0c66a3d3ad0d44cbf86 100644
--- a/components/omnibox/browser/autocomplete_match.cc
+++ b/components/omnibox/browser/autocomplete_match.cc
@@ -497,6 +497,12 @@ url_formatter::FormatUrlTypes AutocompleteMatch::GetFormatTypes(
omnibox::kUIExperimentHideSuggestionUrlScheme)) {
format_types |= url_formatter::kFormatUrlExperimentalOmitHTTPS;
}
+
+ if (base::FeatureList::IsEnabled(
+ omnibox::kUIExperimentHideSuggestionUrlTrivialSubdomains)) {
+ format_types |= url_formatter::kFormatUrlExperimentalOmitTrivialSubdomains;
+ }
+
return format_types;
}

Powered by Google App Engine
This is Rietveld 408576698