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

Issue 2915993004: [WebVR] Only count devices that have successfully connected. (Closed)

Created:
3 years, 6 months ago by amp
Modified:
3 years, 6 months ago
Reviewers:
mthiesse, bajones, billorr
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, feature-vr-reviews_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebVR] Only count devices that have successfully connected. This allows the navigator.GetVRDisplays() promise to resolve when the underlying VR libraries are not installed or out of date. BUG=727969 Review-Url: https://codereview.chromium.org/2915993004 Cr-Commit-Position: refs/heads/master@{#476516} Committed: https://chromium.googlesource.com/chromium/src/+/7a7288d743d475fd4f1a903a1d3d9503ba282792

Patch Set 1 #

Patch Set 2 : track registered and connected devices and only callback into client once #

Patch Set 3 : Ignore device manager, just track the connected devices directly from the callbacks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M device/vr/vr_service_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M device/vr/vr_service_impl.cc View 1 2 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
amp
I'll also need separate approval for the mojom change, but holding off on that until ...
3 years, 6 months ago (2017-06-01 18:14:42 UTC) #2
mthiesse
I think what we should do instead, to simplify a lot of things here, is ...
3 years, 6 months ago (2017-06-01 19:06:49 UTC) #4
mthiesse
I think this would also imply service_->SetClient triggers VrShellDelegate creation. Which I think will be ...
3 years, 6 months ago (2017-06-01 19:12:54 UTC) #5
mthiesse
+tibor for opinions, as he recently did some work in this area.
3 years, 6 months ago (2017-06-01 19:15:27 UTC) #7
amp
After some discussion with Bill I uploaded patch set 2 which attempted to track things ...
3 years, 6 months ago (2017-06-01 19:16:48 UTC) #9
mthiesse
In the future though, we should also probably get rid of the numConnectedDevices return value ...
3 years, 6 months ago (2017-06-01 19:17:25 UTC) #10
amp
PTAL. Latest patch set trims down even further and only touches vr_service_impl. A refactor is ...
3 years, 6 months ago (2017-06-01 21:53:47 UTC) #11
mthiesse
lgtm
3 years, 6 months ago (2017-06-01 21:55:48 UTC) #12
mthiesse
Actually, hold on, not lgtm yet. Won't this break a bunch of sites that don't ...
3 years, 6 months ago (2017-06-01 22:03:14 UTC) #15
amp
On 2017/06/01 22:03:14, mthiesse wrote: > Actually, hold on, not lgtm yet. Won't this break ...
3 years, 6 months ago (2017-06-01 22:23:38 UTC) #16
mthiesse
lgtm. Forgot the devices are created when VRDeviceManager is.
3 years, 6 months ago (2017-06-01 22:31:39 UTC) #17
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/2915993004/40001
3 years, 6 months ago (2017-06-01 23:01:17 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 01:34:27 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7a7288d743d475fd4f1a903a1d3d...

Powered by Google App Engine
This is Rietveld 408576698