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

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

Issue 2966233002: Omnibox UI Experiments: Strip trivial subdomains (Closed)
Patch Set: address one more comment 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
« no previous file with comments | « no previous file | components/omnibox/browser/autocomplete_match_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/autocomplete_match.cc
diff --git a/components/omnibox/browser/autocomplete_match.cc b/components/omnibox/browser/autocomplete_match.cc
index b020beb3d008e26584a78d12fdbac490811d4d6f..c68ed3e6783c38e9b399cef847e415191dc1106a 100644
--- a/components/omnibox/browser/autocomplete_match.cc
+++ b/components/omnibox/browser/autocomplete_match.cc
@@ -502,6 +502,12 @@ url_formatter::FormatUrlTypes AutocompleteMatch::GetFormatTypes(
omnibox::kUIExperimentElideSuggestionUrlAfterHost)) {
format_types |= url_formatter::kFormatUrlExperimentalElideAfterHost;
}
+
+ if (base::FeatureList::IsEnabled(
+ omnibox::kUIExperimentHideSuggestionUrlTrivialSubdomains)) {
+ format_types |= url_formatter::kFormatUrlExperimentalOmitTrivialSubdomains;
+ }
+
return format_types;
}
« no previous file with comments | « no previous file | components/omnibox/browser/autocomplete_match_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698