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

Unified Diff: chrome/browser/about_flags.cc

Issue 2854263002: Omnibox UI Experiments: Add vertical margin variations to about:flags (Closed)
Patch Set: update histogram Created 3 years, 8 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') | components/omnibox/browser/omnibox_field_trial.h » ('J')
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 d7dbc4ee162a62203e172a52c66ecb3c0aedae9e..8a8348c7ac81d3428d1623cb7b211719f9e0fb30 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -931,6 +931,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.
@@ -2743,6 +2766,13 @@ const FeatureEntry kFeatureEntries[] = {
flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription,
kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)},
+ {"omnibox-ui-vertical-margin",
Mark P 2017/05/03 18:38:59 nit: We're supposed to put new entries at the end.
tommycli 2017/05/03 18:49:46 Done.
+ flag_descriptions::kOmniboxUIVerticalMarginName,
+ flag_descriptions::kOmniboxUIVerticalMarginDescription, kOsDesktop,
+ FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUIExperiments,
+ kOmniboxUIVerticalMarginVariations,
+ "OmniboxUIVerticalMarginVariations")},
+
{"enable-color-correct-rendering",
flag_descriptions::kColorCorrectRenderingName,
flag_descriptions::kColorCorrectRenderingDescription, kOsAll,
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | components/omnibox/browser/omnibox_field_trial.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698