[omnibox] Implement OmniboxAlternateMatchDescriptionSeparator flag.
This adds a OmniboxAlternateMatchDescriptionSeparator feature flag. In
the default locale, it replaces the '-' separator between the match
contents and description with a '|' separator.
Bug: 955585
Change-Id: I98253872642e89727fe3a0b29c18caf77ca94a8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1580101
Reviewed-by: Orin Jaworski <[email protected]>
Commit-Queue: Tommy Li <[email protected]>
Cr-Commit-Position: refs/heads/master@{#653662}
diff --git a/components/omnibox/common/omnibox_features.cc b/components/omnibox/common/omnibox_features.cc
index 4faf829..fbf4a3d 100644
--- a/components/omnibox/common/omnibox_features.cc
+++ b/components/omnibox/common/omnibox_features.cc
@@ -123,6 +123,12 @@
const base::Feature kOmniboxUICuesForSearchHistoryMatches{
"OmniboxUICuesForSearchHistoryMatches", base::FEATURE_DISABLED_BY_DEFAULT};
+// Feature that shows an alternate separator before the description of
+// omnibox matches. In English, this changes the separator from '-' to '|'.
+const base::Feature kOmniboxAlternateMatchDescriptionSeparator{
+ "OmniboxAlternateMatchDescriptionSeparator",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+
// Feature to enable clipboard provider to suggest copied text.
const base::Feature kEnableClipboardProviderTextSuggestions{
"OmniboxEnableClipboardProviderTextSuggestions",