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

Issue 2614873002: Ensure navigator.getVRDisplays always resolves. (Closed)

Created:
3 years, 11 months ago by bajones
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-vr-reviews_chromium.org, haraken, jam, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure navigator.getVRDisplays always resolves. In the case that the backing VR service is not available the call will now resolve to an empty array. BUG=678283 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2614873002 Cr-Commit-Position: refs/heads/master@{#442117} Committed: https://chromium.googlesource.com/chromium/src/+/d83aedbf719e5346d2de69a79b5a1d7e9b6c8462

Patch Set 1 #

Patch Set 2 : Removed unnecessary log #

Patch Set 3 : Added layout test. #

Patch Set 4 : Removed some unneeded includes in test #

Total comments: 3

Patch Set 5 : addressing test nits from ddorwin@ #

Total comments: 3

Patch Set 6 : Addition test nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -11 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 3 chunks +9 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.cpp View 1 2 3 4 5 3 chunks +11 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
bajones
alexmos@: Could you review the frame_host change? Per rockot@'s recommendation we're providing an empty handler ...
3 years, 11 months ago (2017-01-05 18:44:54 UTC) #3
alexmos
On 2017/01/05 18:44:54, bajones wrote: > alexmos@: Could you review the frame_host change? Per rockot@'s ...
3 years, 11 months ago (2017-01-05 19:06:00 UTC) #4
Ken Rockot(use gerrit already)
lgtm
3 years, 11 months ago (2017-01-05 19:08:16 UTC) #5
bajones
On 2017/01/05 19:06:00, alexmos wrote: > Looks good, happy to stamp this if rockot@ is ...
3 years, 11 months ago (2017-01-05 19:30:35 UTC) #6
Ken Rockot(use gerrit already)
On Thu, Jan 5, 2017 at 11:30 AM, <bajones@chromium.org> wrote: > On 2017/01/05 19:06:00, alexmos ...
3 years, 11 months ago (2017-01-05 20:03:45 UTC) #7
Ken Rockot(use gerrit already)
On Thu, Jan 5, 2017 at 11:30 AM, <bajones@chromium.org> wrote: > On 2017/01/05 19:06:00, alexmos ...
3 years, 11 months ago (2017-01-05 20:03:46 UTC) #8
bajones
On 2017/01/05 20:03:46, Ken Rockot wrote: > I'm not sure what this means, as I'm ...
3 years, 11 months ago (2017-01-05 20:10:57 UTC) #9
ddorwin
test nits https://codereview.chromium.org/2614873002/diff/60001/third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html File third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html (right): https://codereview.chromium.org/2614873002/diff/60001/third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html#newcode1 third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html:1: <!DOCTYPE html> Regarding the file name: It ...
3 years, 11 months ago (2017-01-05 20:33:02 UTC) #10
bajones
On 2017/01/05 20:33:02, ddorwin wrote: > It would be nice if the name provided more ...
3 years, 11 months ago (2017-01-05 21:31:27 UTC) #11
alexmos
LGTM
3 years, 11 months ago (2017-01-05 21:43:22 UTC) #12
ddorwin
Thanks. Some minor suggestions for improved type checks. https://codereview.chromium.org/2614873002/diff/80001/third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html File third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html (right): https://codereview.chromium.org/2614873002/diff/80001/third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html#newcode8 third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html:8: assert_equals(typeof ...
3 years, 11 months ago (2017-01-06 02:26:10 UTC) #14
bajones
Thanks for the suggestions! Updated.
3 years, 11 months ago (2017-01-06 22:00:25 UTC) #15
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/2614873002/100001
3 years, 11 months ago (2017-01-06 22:00:51 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/d83aedbf719e5346d2de69a79b5a1d7e9b6c8462
3 years, 11 months ago (2017-01-07 00:54:52 UTC) #21
Tobias Sargeant
3 years, 11 months ago (2017-01-09 12:02:07 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2614353002/ by tobiasjs@chromium.org.

The reason for reverting is: Caused builder failures(e.g.
https://uberchromegw.corp.google.com/i/internal.client.clank/builders/x64-bui...)
when building blimp.

undefined reference to `device::mojom::VRService::Name_'.

Powered by Google App Engine
This is Rietveld 408576698