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

Unified Diff: ash/display/display_controller.cc

Issue 1108343002: Revert of Merge Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
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/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index da51923c8e1461cd67a3c5bb55b8d40ef6dde0b8..166a76f0cdc26dce639190d0720e37504d73ce59 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -109,7 +109,7 @@
const char kInternalProp[] = "_CHROME_DISPLAY_INTERNAL";
const char kCARDINAL[] = "CARDINAL";
int xrandr_rotation = RR_Rotate_0;
- switch (info.GetActiveRotation()) {
+ switch (info.rotation()) {
case gfx::Display::ROTATE_0:
xrandr_rotation = RR_Rotate_0;
break;
@@ -140,7 +140,7 @@
scale *= kCursorMultiplierForExternalDisplays;
ui::CursorController::GetInstance()->SetCursorConfigForWindow(
- host->GetAcceleratedWidget(), info.GetActiveRotation(), scale);
+ host->GetAcceleratedWidget(), info.rotation(), scale);
#endif
#endif
scoped_ptr<RootWindowTransformer> transformer(
« no previous file with comments | « ash/content/display/screen_orientation_controller_chromeos_unittest.cc ('k') | ash/display/display_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698