Chromium Code Reviews
DescriptionAndroid screen orientation lock should lock/unlock the same activity
Screen orientation lock used to lock/unlock the focused Activity, rather
than the Activity associated with the WebContents that triggered the
lock/unlock. If unlocking is triggered by a background WebContents, this
would result in the wrong Activity getting unlocked, and hence the
original Activity remaining in a permanently locked state!
This patch makes ScreenOrientationProvider always lock/unlock the
associated Activity, even if it's not the foreground one.
As well as a dedicated test (testUnlockWithDownloadViewerActivity in
VideoFullscreenOrientationLockChromeTest), some additional tests are
added to VideoFullscreenOrientationLockTest for cases that already
worked but didn't have test coverage.
And it fixes a null pointer exception that came up in Shell.java during some of the tests.
BUG=684497
Review-Url: https://codereview.chromium.org/2696303004
Cr-Commit-Position: refs/heads/master@{#453679}
Committed: https://chromium.googlesource.com/chromium/src/+/a2fe96582d0daf599ddcb5c4a655018de5c87755
Patch Set 1 #
Total comments: 4
Patch Set 2 : Address whitespace nits #Patch Set 3 : Rebase #Patch Set 4 : Add data deps to chrome_test_java #Messages
Total messages: 26 (13 generated)
|