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

Unified Diff: chrome/browser/about_flags.cc

Issue 2903293002: [Android] Omnibox Placeholder Experiment (Closed)
Patch Set: fix some naming issues 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
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 588d5e674fade025cf7746ffd82d82b7c337fa34..654c00108d5b667dc87528d560ed8cabf8a4dd55 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -675,6 +675,28 @@ const FeatureEntry::Choice kHerbPrototypeChoices[] = {
};
#endif // OS_ANDROID
+#if defined(OS_ANDROID)
+const FeatureEntry::Choice kOmniboxPlaceholderExperimentChoices[] = {
Ted C 2017/05/30 22:14:28 From the bug, it mentions that we don't need somet
huayinz 2017/05/30 23:10:30 AFAIK I can only override finch config on user deb
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
+ {flag_descriptions::kOmniboxPlaceholderExperimentSearchOrTypeUrl,
+ switches::kOmniboxPlaceholderExperimentSwitch, "SearchOrTypeUrl"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentSearchOrTypeWebsiteName,
+ switches::kOmniboxPlaceholderExperimentSwitch, "SearchOrTypeWebsiteName"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentSearchTheWeb,
+ switches::kOmniboxPlaceholderExperimentSwitch, "SearchTheWeb"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentEnterASearchOrWebsite,
+ switches::kOmniboxPlaceholderExperimentSwitch, "EnterASearchOrWebsite"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentSearchNews,
+ switches::kOmniboxPlaceholderExperimentSwitch, "SearchNews"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentSearchRecipes,
+ switches::kOmniboxPlaceholderExperimentSwitch, "SearchRecipes"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentSearchWeather,
+ switches::kOmniboxPlaceholderExperimentSwitch, "SearchWeather"},
+ {flag_descriptions::kOmniboxPlaceholderExperimentBlank,
+ switches::kOmniboxPlaceholderExperimentSwitch, "Blank"},
+};
+#endif // OS_ANDROID
+
const FeatureEntry::Choice kEnableUseZoomForDSFChoices[] = {
{flag_descriptions::kEnableUseZoomForDsfChoiceDefault, "", ""},
{flag_descriptions::kEnableUseZoomForDsfChoiceEnabled,
@@ -2201,6 +2223,12 @@ const FeatureEntry kFeatureEntries[] = {
flag_descriptions::kHerbPrototypeChoicesDescription, kOsAndroid,
MULTI_VALUE_TYPE(kHerbPrototypeChoices)},
#endif // OS_ANDROID
+#if defined(OS_ANDROID)
+ {"omnibox-placeholder-experiment",
+ flag_descriptions::kOmniboxPlaceholderExperimentName,
+ flag_descriptions::kOmniboxPlaceholderExperimentDescription, kOsAndroid,
+ MULTI_VALUE_TYPE(kOmniboxPlaceholderExperimentChoices)},
+#endif // OS_ANDROID
{"enable-md-bookmarks",
flag_descriptions::kEnableMaterialDesignBookmarksName,
flag_descriptions::kEnableMaterialDesignBookmarksDescription, kOsDesktop,

Powered by Google App Engine
This is Rietveld 408576698