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

Unified Diff: chrome/browser/about_flags.cc

Issue 2854263002: Omnibox UI Experiments: Add vertical margin variations to about:flags (Closed)
Patch Set: update histograms Created 3 years, 7 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 | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index cdaea04b813f7fafd9708f2ccda9ca7cc5eefdeb..174c87c5314b4ce35f709385a69c426aac2abdf7 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -966,6 +966,29 @@ const FeatureEntry::Choice kEnableHeapProfilingChoices[] = {
switches::kEnableHeapProfiling,
switches::kEnableHeapProfilingTaskProfiler}};
+const FeatureEntry::FeatureParam kOmniboxUIVerticalMargin4px[] = {
+ {OmniboxFieldTrial::kUIExperimentsVerticalMarginParam, "4"}};
+const FeatureEntry::FeatureParam kOmniboxUIVerticalMargin8px[] = {
+ {OmniboxFieldTrial::kUIExperimentsVerticalMarginParam, "8"}};
+const FeatureEntry::FeatureParam kOmniboxUIVerticalMargin12px[] = {
+ {OmniboxFieldTrial::kUIExperimentsVerticalMarginParam, "12"}};
+const FeatureEntry::FeatureParam kOmniboxUIVerticalMargin16px[] = {
+ {OmniboxFieldTrial::kUIExperimentsVerticalMarginParam, "16"}};
+const FeatureEntry::FeatureParam kOmniboxUIVerticalMargin20px[] = {
+ {OmniboxFieldTrial::kUIExperimentsVerticalMarginParam, "20"}};
+
+const FeatureEntry::FeatureVariation kOmniboxUIVerticalMarginVariations[] = {
+ {"4px vertical margin", kOmniboxUIVerticalMargin4px,
+ arraysize(kOmniboxUIVerticalMargin4px), nullptr},
+ {"8px vertical margin", kOmniboxUIVerticalMargin8px,
+ arraysize(kOmniboxUIVerticalMargin8px), nullptr},
+ {"12px vertical margin", kOmniboxUIVerticalMargin12px,
+ arraysize(kOmniboxUIVerticalMargin12px), nullptr},
+ {"16px vertical margin", kOmniboxUIVerticalMargin16px,
+ arraysize(kOmniboxUIVerticalMargin16px), nullptr},
+ {"20px vertical margin", kOmniboxUIVerticalMargin20px,
+ arraysize(kOmniboxUIVerticalMargin20px), nullptr}};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name.
@@ -2838,6 +2861,13 @@ const FeatureEntry kFeatureEntries[] = {
SINGLE_VALUE_TYPE(switches::kShowCertLink)},
#endif
+ {"omnibox-ui-vertical-margin",
+ flag_descriptions::kOmniboxUIVerticalMarginName,
+ flag_descriptions::kOmniboxUIVerticalMarginDescription, kOsDesktop,
+ FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUIExperiments,
+ kOmniboxUIVerticalMarginVariations,
+ "OmniboxUIVerticalMarginVariations")},
+
{"use-suggestions-even-if-few",
flag_descriptions::kUseSuggestionsEvenIfFewFeatureName,
flag_descriptions::kUseSuggestionsEvenIfFewFeatureDescription, kOsAll,
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698