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

Issue 2859893002: VR: Make work done during onResume in VrShellDelegate asynchronous. (Closed)

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

Description

VR: Make work done during onResume in VrShellDelegate asynchronous. Makes registerDaydreamIntent run after onResume. Makes static checking of VR support level in onResume an async task. Note that doing this work asynchronously is racy. In practice this shouldn't be an issue because the user would have to put their phone into their daydream headset within a few milliseconds of launching chrome. The failure mode is also not terrible, the user would return to Daydream home instead of Chrome. BUG=718136 Review-Url: https://codereview.chromium.org/2859893002 Cr-Commit-Position: refs/heads/master@{#469141} Committed: https://chromium.googlesource.com/chromium/src/+/2d3151bb4c3bf0346ceec9c4b43f895607fe8d2c

Patch Set 1 #

Total comments: 5

Patch Set 2 : Ensure we don't register the intent after pausing. #

Patch Set 3 : ADdress comment #

Total comments: 2

Patch Set 4 : Add comments #

Patch Set 5 : Future-proof comment #

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

Messages

Total messages: 16 (8 generated)
mthiesse
PTAL
3 years, 7 months ago (2017-05-03 19:37:58 UTC) #2
cjgrant
Some extra explanation in the original description would be good here. https://codereview.chromium.org/2859893002/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): ...
3 years, 7 months ago (2017-05-03 19:49:31 UTC) #6
mthiesse
Updated CL description. https://codereview.chromium.org/2859893002/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/2859893002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode260 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:260: // call is slow, and takes ...
3 years, 7 months ago (2017-05-03 19:52:49 UTC) #7
amp
https://codereview.chromium.org/2859893002/diff/40001/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/2859893002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode239 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:239: if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) return; Nit, but maybe add ...
3 years, 7 months ago (2017-05-03 20:07:07 UTC) #8
mthiesse
https://codereview.chromium.org/2859893002/diff/40001/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/2859893002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode239 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:239: if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) return; On 2017/05/03 20:07:07, amp ...
3 years, 7 months ago (2017-05-03 20:08:51 UTC) #9
cjgrant
lgtm https://codereview.chromium.org/2859893002/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/2859893002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode260 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:260: // call is slow, and takes ~10ms. On ...
3 years, 7 months ago (2017-05-03 20:52:25 UTC) #10
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/2859893002/80001
3 years, 7 months ago (2017-05-03 20:54:19 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 21:46:20 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2d3151bb4c3bf0346ceec9c4b43f...

Powered by Google App Engine
This is Rietveld 408576698