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

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..9e58110b22ab86d0371746a3e1c5cfc79c5aa99e 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -295,7 +295,8 @@ 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.ActiveRotation()),
+ gfx::Display::ROTATION_SOURCE_USER);
}
// Rotate the active window.
« no previous file with comments | « no previous file | ash/content/display/screen_orientation_controller_chromeos.h » ('j') | ash/display/display_info.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698