This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Prevent DisplayPreferences from saving incorrect rotations.
Refactor DisplayInfo::rotation_ to track different sources of rotations Currently DisplayInfo only tracks the active rotation for the given display. DisplayPreferences however saves a user rotation, as well as an accelerometer rotation. DisplayController::Observer::OnDisplayConfigurationChanged triggers the saving of display preferences. This has been leading to active accelerometer rotations being saved as user preferences, and being re-applied upon reboot. This change refactors DisplayInfo to track one rotation per source of rotation changes. DisplayPreferences has been updated to save based on these states. TEST=DisplayPreferencesTest.DontSaveMaximizeModeControllerRotations, also ran ash_unittests, and unit_tests BUG=chrome-os-partner:37555, 469752, 466861 [email protected], [email protected], [email protected] NOTRY=true NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1071353003 Cr-Commit-Position: refs/heads/master@{#326614} (cherry picked from commit d01de7f) Review URL: https://codereview.chromium.org/1107383002 Cr-Commit-Position: refs/branch-heads/2357@{#248} Cr-Branched-From: 59d4494-refs/heads/master@{#323860}
- Loading branch information
jonross
authored and
Commit bot
committed
Apr 28, 2015
1 parent
58e5cab
commit bb34612
Showing
28 changed files
with
284 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.