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

Unified Diff: chrome/browser/about_flags.cc

Issue 975943002: Implemented screen rotation animation experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added ash-screen-rotation-animation entry to histograms.xml. Created 5 years, 9 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 c787e21696a7009e19503d3b20b2bc9cbad2e28d..171e097163aae49a097d52ac2f5838f90e3d2467 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -393,6 +393,20 @@ const Experiment::Choice kFillOnAccountSelectChoices[] = {
autofill::switches::kEnableFillOnAccountSelectNoHighlighting, "" },
};
+#if defined(USE_ASH)
+const Experiment::Choice kAshScreenRotationAnimationChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, "", "" },
+ { IDS_ASH_SCREEN_ROTATION_ANIMATION_PARTIAL_ROTATION,
+ ash::switches::kAshEnableScreenRotationAnimation, "partial-rotation" },
+ { IDS_ASH_SCREEN_ROTATION_ANIMATION_PARTIAL_ROTATION_SLOW,
+ ash::switches::kAshEnableScreenRotationAnimation, "partial-rotation-slow" },
+ { IDS_ASH_SCREEN_ROTATION_ANIMATION_FULL_ROTATION,
+ ash::switches::kAshEnableScreenRotationAnimation, "full-rotation" },
+ { IDS_ASH_SCREEN_ROTATION_ANIMATION_FULL_ROTATION_SLOW,
+ ash::switches::kAshEnableScreenRotationAnimation, "full-rotation-slow" }
+};
+#endif
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the experiment is the internal name. If you'd like to
@@ -979,6 +993,13 @@ const Experiment kExperiments[] = {
kOsCrOS,
SINGLE_VALUE_TYPE(ash::switches::kAshEnableMirroredScreen),
},
+ {
+ "ash-enable-screen-rotation-animations",
+ IDS_FLAGS_ASH_ENABLE_SCREEN_ROTATION_ANIMATION_NAME,
+ IDS_FLAGS_ASH_ENABLE_SCREEN_ROTATION_ANIMATION_DESCRIPTION,
+ kOsCrOS,
+ MULTI_VALUE_TYPE(kAshScreenRotationAnimationChoices)
+ },
#endif // defined(USE_ASH)
#if defined(OS_CHROMEOS)
{
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/webui/options/chromeos/display_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698