[omnibox] Add chrome://flags flag for kMaxZeroSuggestMatches.
crrev.com/c/2189354 added the feature and param.
This CL adds a chrome://flags entry with variations [5, 15].
Bug: 1079023
Change-Id: I3f9cd812cbc7c3ad2fc1a2bc245d5f2a8cd5ebe8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2311576
Commit-Queue: manuk hovanesian <[email protected]>
Reviewed-by: Justin Donnelly <[email protected]>
Cr-Commit-Position: refs/heads/master@{#790909}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index ff35253..8acc4a2 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1127,6 +1127,75 @@
#endif // defined(OS_ANDROID)
};
+const FeatureEntry::FeatureVariation kMaxZeroSuggestMatchesVariations[] = {
+ {
+ "5",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "5"}},
+ 1,
+ nullptr,
+ },
+ {
+ "6",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "6"}},
+ 1,
+ nullptr,
+ },
+ {
+ "7",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "7"}},
+ 1,
+ nullptr,
+ },
+ {
+ "8",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "8"}},
+ 1,
+ nullptr,
+ },
+ {
+ "9",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "9"}},
+ 1,
+ nullptr,
+ },
+ {
+ "10",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "10"}},
+ 1,
+ nullptr,
+ },
+ {
+ "11",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "11"}},
+ 1,
+ nullptr,
+ },
+ {
+ "12",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "12"}},
+ 1,
+ nullptr,
+ },
+ {
+ "13",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "13"}},
+ 1,
+ nullptr,
+ },
+ {
+ "14",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "14"}},
+ 1,
+ nullptr,
+ },
+ {
+ "15",
+ (FeatureEntry::FeatureParam[]){{"MaxZeroSuggestMatches", "15"}},
+ 1,
+ nullptr,
+ },
+};
+
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
@@ -3701,6 +3770,14 @@
FEATURE_VALUE_TYPE(
omnibox::kHideSteadyStateUrlPathQueryAndRefOnInteraction)},
+ {"omnibox-max-zero-suggest-matches",
+ flag_descriptions::kOmniboxMaxZeroSuggestMatchesName,
+ flag_descriptions::kOmniboxMaxZeroSuggestMatchesDescription,
+ kOsDesktop | kOsAndroid,
+ FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
+ kMaxZeroSuggestMatchesVariations,
+ "OmniboxBundledExperimentV1")},
+
{"omnibox-ui-max-autocomplete-matches",
flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,