Index: chrome/browser/about_flags.cc |
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc |
index 1465091df6b80ed533ead5c41f9ee44a1e8f20d1..eb5ca07c3bd0947698cfa34795672c42b539e82a 100644 |
--- a/chrome/browser/about_flags.cc |
+++ b/chrome/browser/about_flags.cc |
@@ -542,6 +542,16 @@ const Experiment::Choice kV8CacheOptionsChoices[] = { |
{ IDS_FLAGS_V8_CACHE_OPTIONS_CODE, switches::kV8CacheOptions, "code" }, |
}; |
+const Experiment::Choice kProgressBarAnimationChoices[] = { |
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
+ switches::kProgressBarAnimation, "disabled" }, |
+ { IDS_FLAGS_PROGRESS_BAR_ANIMATION_SMOOTH, |
+ switches::kProgressBarAnimation, "smooth" }, |
+ { IDS_FLAGS_PROGRESS_BAR_ANIMATION_FAST_START, |
+ switches::kProgressBarAnimation, "fast-start" }, |
+}; |
+ |
// RECORDING USER METRICS FOR FLAGS: |
// ----------------------------------------------------------------------------- |
// The first line of the experiment is the internal name. If you'd like to |
@@ -2075,6 +2085,14 @@ const Experiment kExperiments[] = { |
ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSimplifiedFullscreenUI, |
switches::kDisableSimplifiedFullscreenUI) |
}, |
+#if defined(OS_ANDROID) |
+ {"progress-bar-animation", |
+ IDS_FLAGS_PROGRESS_BAR_ANIMATION_NAME, |
+ IDS_FLAGS_PROGRESS_BAR_ANIMATION_DESCRIPTION, |
+ kOsAndroid, |
+ MULTI_VALUE_TYPE(kProgressBarAnimationChoices)}, |
+#endif // defined(OS_ANDROID) |
+ |
// NOTE: Adding new command-line switches requires adding corresponding |
// entries to enum "LoginCustomFlags" in histograms.xml. See note in |
// histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |