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

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

Issue 2961393002: Omnibox UI Experiments: Hook up elide-after-host feature flag. (Closed)
Patch Set: merge 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 | « chrome/browser/flag_descriptions.cc ('k') | 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 5837c8d00f5ccf023a111de12810e34c9798cfe9..b020beb3d008e26584a78d12fdbac490811d4d6f 100644
--- a/components/omnibox/browser/autocomplete_match.cc
+++ b/components/omnibox/browser/autocomplete_match.cc
@@ -497,6 +497,11 @@ url_formatter::FormatUrlTypes AutocompleteMatch::GetFormatTypes(
omnibox::kUIExperimentHideSuggestionUrlScheme)) {
format_types |= url_formatter::kFormatUrlExperimentalOmitHTTPS;
}
+
+ if (base::FeatureList::IsEnabled(
+ omnibox::kUIExperimentElideSuggestionUrlAfterHost)) {
+ format_types |= url_formatter::kFormatUrlExperimentalElideAfterHost;
+ }
return format_types;
}
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | components/omnibox/browser/autocomplete_match_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698