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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 1071353003: Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 076df1edf83db55e1976cb5c6373218b7609aded..f4b28b5701b5981014246287dbb83379b78d0f56 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -295,7 +295,9 @@ void HandleRotateScreen() {
const DisplayInfo& display_info =
Shell::GetInstance()->display_manager()->GetDisplayInfo(display.id());
ash::ScreenRotationAnimator(display.id())
- .Rotate(GetNextRotation(display_info.rotation()));
+ .Rotate(GetNextRotation(
+ display_info.Rotation(gfx::Display::ROTATION_SOURCE_ACTIVE)),
+ gfx::Display::ROTATION_SOURCE_USER);
}
// Rotate the active window.

Powered by Google App Engine
This is Rietveld 408576698