Index: ash/content/display/screen_orientation_controller_chromeos.cc |
diff --git a/ash/content/display/screen_orientation_controller_chromeos.cc b/ash/content/display/screen_orientation_controller_chromeos.cc |
index ea473e0a9fab5ed9f78ee792401a6fc27428ecb8..cb2eddd912584b30577760bdd1ff790ce10e792b 100644 |
--- a/ash/content/display/screen_orientation_controller_chromeos.cc |
+++ b/ash/content/display/screen_orientation_controller_chromeos.cc |
@@ -7,6 +7,7 @@ |
#include "ash/ash_switches.h" |
#include "ash/display/display_info.h" |
#include "ash/display/display_manager.h" |
+#include "ash/rotator/screen_rotation_animator.h" |
#include "ash/shell.h" |
#include "ash/wm/maximize_mode/maximize_mode_controller.h" |
#include "base/auto_reset.h" |
@@ -118,8 +119,8 @@ void ScreenOrientationController::SetDisplayRotation( |
current_rotation_ = rotation; |
base::AutoReset<bool> auto_ignore_display_configuration_updates( |
&ignore_display_configuration_updates_, true); |
- display_manager->SetDisplayRotation(gfx::Display::InternalDisplayId(), |
- rotation); |
+ ash::ScreenRotationAnimator(gfx::Display::InternalDisplayId()) |
+ .Rotate(rotation); |
} |
void ScreenOrientationController::OnWindowActivated(aura::Window* gained_active, |