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.
Revert of Merge Prevent DisplayPreferences from saving incorrect rota…
…tions. (patchset #1 id:1 of https://codereview.chromium.org/1107383002/) Reason for revert: Merge issue broke cros build https://uberchromegw.corp.google.com/i/chrome/builders/cros%20beta/builds/8333 Original issue's description: > 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) [email protected],[email protected],[email protected] NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=chrome-os-partner:37555, 469752, 466861 Review URL: https://codereview.chromium.org/1108343002 Cr-Commit-Position: refs/branch-heads/2357@{#249} Cr-Branched-From: 59d4494-refs/heads/master@{#323860}
- Loading branch information
jonross
authored and
Commit bot
committed
Apr 28, 2015
1 parent
bb34612
commit dde12b2
Showing
28 changed files
with
213 additions
and
284 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.