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

Issue 2510713003: Fix placing phone in headset exiting VR. (Closed)

Created:
4 years, 1 month ago by mthiesse
Modified:
4 years, 1 month ago
Reviewers:
Ted C, bajones, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix placing phone in headset exiting VR. Currently, daydream DON flow can be passed without putting the phone in the headset (rotating to landscape and pairing the controller passes the DON flow). At the same time, because we don't integrate with daydream home, and we're not a separate activity, we exit VR any time we're paused. This leads to a situation where we're in VR without having the headset on, we put the phone into the headset, the NFC trigger fires and launches the NFC handling activity (which immediately exits because we're in VR), which causes us to pause and exit VR. There's no way at the moment to detect that we're returning from the NFC activity, short of hacks around listening to the NFC trigger ourselves. This CL adds a timeout for re-entering VR on CTA resume, after a CTA pause, that should be short enough to avoid any user interaction intending to exit VR leading them to re-enter it. BUG=641401 Committed: https://crrev.com/dca762297c5f26cb188075775d571c00702d77a4 Cr-Commit-Position: refs/heads/master@{#432773}

Patch Set 1 #

Patch Set 2 : Fix webVR re-entry logic. #

Total comments: 6

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -14 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java View 1 2 3 5 chunks +21 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
mthiesse
PTAL
4 years, 1 month ago (2016-11-16 15:57:03 UTC) #2
bshe
hum. using a timer is really unfortunate. But I agree there is no better way ...
4 years, 1 month ago (2016-11-16 16:57:51 UTC) #3
mthiesse
https://codereview.chromium.org/2510713003/diff/20001/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/2510713003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode250 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:250: if (mInVr) { On 2016/11/16 16:57:51, bshe wrote: > ...
4 years, 1 month ago (2016-11-16 17:32:29 UTC) #4
bshe
On 2016/11/16 17:32:29, mthiesse wrote: > https://codereview.chromium.org/2510713003/diff/20001/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): > > ...
4 years, 1 month ago (2016-11-16 17:57:00 UTC) #5
mthiesse
+tedchoc@chromium.org for OWNERS review.
4 years, 1 month ago (2016-11-16 18:46:34 UTC) #7
Ted C
lgtm You should consider adding an OWNERS file for: chrome/android/java/src/org/chromium/chrome/browser/vr_shell Still happy to help with ...
4 years, 1 month ago (2016-11-16 21:26:07 UTC) #8
mthiesse
https://codereview.chromium.org/2510713003/diff/20001/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/2510713003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode78 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:78: private long mLastVRExit = 0; On 2016/11/16 21:26:07, Ted ...
4 years, 1 month ago (2016-11-17 03:50:18 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/2510713003/60001
4 years, 1 month ago (2016-11-17 03:51:21 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-17 05:49:49 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 05:53:12 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dca762297c5f26cb188075775d571c00702d77a4
Cr-Commit-Position: refs/heads/master@{#432773}

Powered by Google App Engine
This is Rietveld 408576698