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

Issue 2696303004: Android screen orientation lock should lock/unlock the same activity (Closed)

Created:
3 years, 10 months ago by johnme
Modified:
3 years, 9 months ago
CC:
agrieve+watch_chromium.org, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dominickn+watch_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, Peter Beverloo, pkotwicz+watch_chromium.org, nessy, Srirama, zpeng+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android 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)
johnme
mlamouri@chromium.org: Please review overall patch
3 years, 10 months ago (2017-02-16 19:16:48 UTC) #3
mlamouri (slow - plz ping)
Looks great, thanks! :) https://codereview.chromium.org/2696303004/diff/1/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java File content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java (right): https://codereview.chromium.org/2696303004/diff/1/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java#newcode78 content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java:78: // Locking orientation is only ...
3 years, 10 months ago (2017-02-17 12:15:37 UTC) #4
mlamouri (slow - plz ping)
hmm, I meant to lgtm :)
3 years, 10 months ago (2017-02-17 12:15:48 UTC) #5
mlamouri (slow - plz ping)
+tedchoc@
3 years, 10 months ago (2017-02-17 12:17:39 UTC) #7
Ted C
lgtm Conceptually, you could lock the orientation of an activity containing a webcontents, then reparent ...
3 years, 10 months ago (2017-02-23 18:30:23 UTC) #8
johnme
Addressed nits - thanks! > Conceptually, you could lock the orientation of an activity containing ...
3 years, 10 months ago (2017-02-23 18:41:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696303004/20001
3 years, 10 months ago (2017-02-23 18:42:30 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/238212)
3 years, 10 months ago (2017-02-23 19:14:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696303004/40001
3 years, 10 months ago (2017-02-24 17:36:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/239156)
3 years, 10 months ago (2017-02-24 20:05:18 UTC) #19
mlamouri (slow - plz ping)
Looks like your own test is failing johnme@ :(
3 years, 9 months ago (2017-02-27 15:22:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2696303004/60001
3 years, 9 months ago (2017-02-28 17:17:30 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 19:57:16 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a2fe96582d0daf599ddcb5c4a655...

Powered by Google App Engine
This is Rietveld 408576698