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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index 0c29fcd60624d6ccdfe924e6db94ccbb0e9ac396..b806fe488bb7d401153c7b94ae2dd42cbe33be38 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -10,6 +10,7 @@
#include "ash/display/display_controller.h"
#include "ash/display/display_manager.h"
#include "ash/display/resolution_notification_controller.h"
+#include "ash/rotator/screen_rotation_animator.h"
#include "ash/shell.h"
#include "base/bind.h"
#include "base/logging.h"
@@ -431,7 +432,7 @@ void DisplayOptionsHandler::HandleSetOrientation(const base::ListValue* args) {
content::RecordAction(
base::UserMetricsAction("Options_DisplaySetOrientation"));
- GetDisplayManager()->SetDisplayRotation(display_id, new_rotation);
+ ash::ScreenRotationAnimator(display_id).Rotate(new_rotation);
}
void DisplayOptionsHandler::HandleSetColorProfile(const base::ListValue* args) {
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698