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) { |