This repository was archived by the owner on Apr 3, 2020. It is now read-only.
Commit dde12b2
Revert of Merge Prevent DisplayPreferences from saving incorrect rotations. (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}1 parent bb34612 commit dde12b2
File tree
28 files changed
+213
-284
lines changed- ash
- accelerators
- content/display
- display
- rotator
- system
- audio
- chromeos
- overview
- test
- wm
- maximize_mode
- chrome/browser
- chromeos/display
- extensions
- ui/webui/options/chromeos
- ui/gfx
28 files changed
+213
-284
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
Lines changed: 16 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | | - | |
| 123 | + | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
202 | 201 | | |
203 | 202 | | |
204 | 203 | | |
205 | | - | |
| 204 | + | |
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
| |||
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
| 222 | + | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
| |||
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
| 234 | + | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | | - | |
240 | | - | |
| 238 | + | |
241 | 239 | | |
242 | | - | |
| 240 | + | |
243 | 241 | | |
244 | 242 | | |
245 | 243 | | |
| |||
272 | 270 | | |
273 | 271 | | |
274 | 272 | | |
275 | | - | |
276 | | - | |
| 273 | + | |
277 | 274 | | |
278 | 275 | | |
279 | 276 | | |
| |||
285 | 282 | | |
286 | 283 | | |
287 | 284 | | |
288 | | - | |
289 | | - | |
| 285 | + | |
290 | 286 | | |
291 | 287 | | |
292 | 288 | | |
293 | 289 | | |
294 | 290 | | |
295 | 291 | | |
296 | | - | |
297 | | - | |
| 292 | + | |
298 | 293 | | |
299 | 294 | | |
300 | 295 | | |
| |||
305 | 300 | | |
306 | 301 | | |
307 | 302 | | |
308 | | - | |
| 303 | + | |
309 | 304 | | |
310 | 305 | | |
311 | 306 | | |
312 | 307 | | |
313 | 308 | | |
314 | | - | |
315 | | - | |
| 309 | + | |
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
319 | 313 | | |
320 | 314 | | |
321 | 315 | | |
322 | | - | |
323 | | - | |
| 316 | + | |
324 | 317 | | |
325 | 318 | | |
326 | 319 | | |
| |||
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
375 | | - | |
376 | | - | |
| 368 | + | |
377 | 369 | | |
378 | 370 | | |
379 | 371 | | |
380 | 372 | | |
381 | 373 | | |
382 | 374 | | |
383 | | - | |
384 | | - | |
| 375 | + | |
385 | 376 | | |
386 | 377 | | |
387 | 378 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 72 | + | |
| 73 | + | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
105 | 102 | | |
106 | 103 | | |
107 | 104 | | |
108 | | - | |
109 | | - | |
| 105 | + | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
0 commit comments