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

Issue 2889693005: Stay in VR while showing DOFF flow and connect CCT exit button to this. (Closed)

Created:
3 years, 7 months ago by mthiesse
Modified:
3 years, 7 months ago
CC:
chromium-reviews, feature-vr-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stay in VR while showing DOFF flow and connect CCT exit button to this. This CL does a bunch of complicated things like allowing us to stay in VR when paused as long as we're showing the DOFF flow and expect to return to chrome while still in VR. There are some gotchas I had to be careful to address, like if the user hits the home button during the DOFF flow then returns to any instance of chrome (CTA/CCT/WebApk) we need to make sure to exit VR in the activity that's still showing the DOFF flow. This also fixes a possible Activity leak if the nonpresentingdelegate remains alive when switching activities. BUG=719661 Review-Url: https://codereview.chromium.org/2889693005 Cr-Commit-Position: refs/heads/master@{#473193} Committed: https://chromium.googlesource.com/chromium/src/+/2dc94cbcc999cade8a3a9a9b2118be81a403e54b

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -27 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java View 1 2 13 chunks +93 lines, -24 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_browser_interface.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
mthiesse
PTAL.
3 years, 7 months ago (2017-05-17 20:37:49 UTC) #2
billorr1
https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode799 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:799: return; What is the state here? Should this record ...
3 years, 7 months ago (2017-05-17 21:14:10 UTC) #4
mthiesse
https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode799 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:799: return; On 2017/05/17 21:14:10, billorr1 wrote: > What is ...
3 years, 7 months ago (2017-05-17 22:48:27 UTC) #5
ymalik
https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode432 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:432: assert !mInVr || mShowingDaydreamDoff; This assert says that we ...
3 years, 7 months ago (2017-05-18 14:37:10 UTC) #6
mthiesse
https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2889693005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode432 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:432: assert !mInVr || mShowingDaydreamDoff; On 2017/05/18 14:37:10, ymalik wrote: ...
3 years, 7 months ago (2017-05-18 15:11:44 UTC) #7
mthiesse
Ping, I'd like to get this in by tomorrow if possible as I'm gone next ...
3 years, 7 months ago (2017-05-18 23:52:16 UTC) #8
ymalik
lgtm The CL makes sense at a high-level, but as you pointed out, its quite ...
3 years, 7 months ago (2017-05-19 14:45:24 UTC) #11
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/2889693005/40001
3 years, 7 months ago (2017-05-19 15:11:13 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 15:17:17 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2dc94cbcc999cade8a3a9a9b2118...

Powered by Google App Engine
This is Rietveld 408576698