Improve request session in WebXR [chromium/src : master]

13 views
Skip to first unread message

Iker Jamardo (Gerrit)

unread,
May 5, 2018, 7:44:09 PM5/5/18
to blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, David Dorwin, Max Rebuschatis, Ian Vollick, Bill Orr, Yaron Friedman, Michael Thiessen, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

This change is ready for review.

View Change

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 2
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Sat, 05 May 2018 23:44:05 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Iker Jamardo (Gerrit)

    unread,
    May 5, 2018, 7:44:09 PM5/5/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org

    Iker Jamardo would like David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman and Max Rebuschatis to review this change.

    View Change

    Improve request session in WebXR

    Improve the support for request session in WebXR mainly focused on
    allowing ARCoreDevice to receive a call when the session request
    is made. Also improves the support session query with a new ar flag.

    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
    Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    M third_party/blink/renderer/modules/xr/xr_session_creation_options.idl
    13 files changed, 85 insertions(+), 3 deletions(-)


    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 2
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newchange

    Michael Thiessen (Gerrit)

    unread,
    May 7, 2018, 11:25:45 AM5/7/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, David Dorwin, Max Rebuschatis, Ian Vollick, Bill Orr, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    View Change

    4 comments:

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 4
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 May 2018 15:25:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Iker Jamardo (Gerrit)

    unread,
    May 7, 2018, 12:44:53 PM5/7/18
    to blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Michael Thiessen, David Dorwin, Max Rebuschatis, Ian Vollick, Bill Orr, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    Fixes in patch 5.

    View Change

    4 comments:


      • display_->RequestSession(std::move(callback));
        }

        void VRDisplayHost::SetListeningForActivate(bool listening) {

      • Extract a shared function for this.

      • This error message is particularly unhelpful...

      • This seems wrong. […]

        This was just reflecting the current status, not the future one. In the case of ARCore, not specifying ar in the options will still lead to AR. Is that what we want for the moment? @ddorwin

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 5
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 May 2018 16:44:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Michael Thiessen <mthi...@chromium.org>
    Gerrit-MessageType: comment

    David Dorwin (Gerrit)

    unread,
    May 7, 2018, 2:04:33 PM5/7/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Michael Thiessen, Max Rebuschatis, Ian Vollick, Bill Orr, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    Thank you. Mostly minor stuff.

    View Change

    30 comments:

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 5
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 May 2018 18:04:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Iker Jamardo (Gerrit)

    unread,
    May 7, 2018, 3:24:20 PM5/7/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #6 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also improves the support session query with a new ar flag.

    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
    Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    M third_party/blink/renderer/modules/xr/xr_session_creation_options.idl
    13 files changed, 97 insertions(+), 8 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 6
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 7, 2018, 3:24:48 PM5/7/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #7 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also improves the supportSession query with a new ar flag.

    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    M third_party/blink/renderer/modules/xr/xr_session_creation_options.idl
    13 files changed, 97 insertions(+), 8 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 7
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 7, 2018, 4:50:19 PM5/7/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #8 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also improves the supportSession query with a new ar flag.

    Bug: 837538

    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    M third_party/blink/renderer/modules/xr/xr_session_creation_options.idl
    13 files changed, 97 insertions(+), 8 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 8
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 7, 2018, 5:13:44 PM5/7/18
    to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Michael Thiessen, Max Rebuschatis, Ian Vollick, Bill Orr, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    Replied to David's comments.

    View Change

    30 comments:

      • nit: supportsSession

        Done

      • nit: This should be before RequestPresent since they are always called in that order.

        Done

      • Patch Set #5, Line 43: void RequestSession(RequestSessionCallback callback) override;

        nit: This should be before RequestPresent.

      • Done

      • Patch Set #5, Line 49: bool CheckSecureContextRequirement();

        // TODO(ddorwin): Instead, check before returning this this object at all.

      • Patch Set #5, Line 21: const char kSecureContextRequired[] = "A secure context is required.";

        This should never occur in production, so we don't need to provide a useful message.

      • Done

      • Patch Set #5, Line 93: void VRDisplayHost::RequestSession(RequestSessionCallback callback) {

        ditto: Above RequestPresent

      • Done

      • We can just fail like at line 65. […]

        Done

      • Done

      • Why are we returning a string? […]

        I seemed important to me to provide an accurate message of why the session request failed. But I might be wrong.

    • File device/vr/vr_device_base.h:

      • Patch Set #5, Line 33: void OnExitPresent() override;

        Unrelated: Please move this below IsFallbackDevice after moving it.

      • Done

      • Done

      • Patch Set #5, Line 47: bool IsFallbackDevice() override;

        unrelated: Please move this up below 35 to group VRDevice overrides and match the VRDevice order.

      • Patch Set #5, Line 74: std::move(callback).Run(base::Optional<std::string>());

        // TODO(offenwanger): Implement this for all devices.

      • Patch Set #5, Line 18: const char kNotAccessAllowed[] = "No access to the device allowed.";

        We don't need these. See below.

      • Done

      • Done

      • The comment at line 90 refers only to the two methods above. […]

        Done

      • Patch Set #5, Line 74: if (!supports_ar_) {

        The browser side should prevent support_ar_ without the flag. We could DCHECK this at line 72.

      • This is what I did initially and Michael said it was incorrect because there could be devices that support VR and AR at the same time. Ok to the DCHECK.

      • This needs to be a DOMException. […]

        Done

      • Patch Set #5, Line 245: supports_ar_ = display_info_->capabilities->can_provide_pass_through_images;

        Good idea! Better than my suggestion.

      • We don't want to change the web-facing API yet because this hasn't been incubated. […]

        So, just remove it? How can I check it if it's not there? I don't really understand wanting to have this flag at this moment.

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 8
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 May 2018 21:13:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>
    Comment-In-Reply-To: Michael Thiessen <mthi...@chromium.org>
    Comment-In-Reply-To: Iker Jamardo <ijam...@chromium.org>
    Gerrit-MessageType: comment

    Iker Jamardo (Gerrit)

    unread,
    May 7, 2018, 7:22:52 PM5/7/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #11 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also improves the supportSession query with a new ar flag.

    Bug: 837538

    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    12 files changed, 97 insertions(+), 10 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 11
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Bill Orr (Gerrit)

    unread,
    May 7, 2018, 8:17:39 PM5/7/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    View Change

    4 comments:

      • !kAllowHTTPWebVRWithFlag ||
        !base::CommandLine::ForCurrentProcess()->HasSwitch(
        switches::kEnableWebVR);

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 11
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 00:17:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    David Dorwin (Gerrit)

    unread,
    May 7, 2018, 10:01:11 PM5/7/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    View Change

    16 comments:

    • Commit Message:

      • Patch Set #10, Line 13: Also improves the supportSession query with a new ar flag.

        Also adds a check to both supportSession and requestSession to ensure the device supports AR capabilities when the hit-test flag is enabled.

      • Patch Set #10, Line 15: Bug: 837538

        While this might address that bug (though it's not quite clear what it meant), the majority of this CL is really for something else. Isn't it laying the groundwork for 835037?

        Also, I think 837538 was just for a TODO in code than never landed. Thus, we can probably just close it as WontFix (obsolete) and remove it here.

    • File chrome/browser/vr/service/vr_display_host.h:

    • File chrome/browser/vr/service/vr_display_host.cc:

      • Patch Set #10, Line 91: void VRDisplayHost::RequestSession(RequestSessionCallback callback) {

        nit: move up to line 73.

    • File device/vr/public/mojom/vr_service.mojom:

      • Patch Set #10, Line 247: , string? fail_message

        Given that we didn't provide a message from RequestPresent, I think we can probably live without one here too. Another thing to note is that these detailed messages provide information about the client and/or user configuration, which can be undesirable. Especially if there's nothing the app can do about it, we should prefer not adding the complexity. That also means we don't have good mechanisms to help developers during development. There is a way to do only that (a separate message the only goes to the console), but I'm not sure the existing failure cases warrant that.

        Also, we don't appear to be passing any strings, so just remove it?

      • Patch Set #10, Line 248: // The returned transport_options is marked optional: it's null for

        nit: Since we have a comment, add a newline before the comment and after the method.

    • File device/vr/vr_device_base.h:

      • Patch Set #10, Line 33: bool IsFallbackDevice() override;

        These two should be below SetMagicWindowEnabled to match the base class.

    • File device/vr/vr_device_base.cc:

    • File device/vr/vr_display_impl.h:

      • Patch Set #10, Line 63: bool IsAccessAllowedAndInFocusedFrame();

        Is there a reason for this helper function? The long combined name is perhaps more confusing than the code itself. It would be better if it was named something like CanStartNewSession. That would allow us to keep the policy separate from the call site and question.

    • File device/vr/vr_display_impl.cc:

      • Patch Set #10, Line 77: if (!device_->IsAccessAllowed(this) || !InFocusedFrame()) {

        If we are going to have a helper function, we should use it anywhere we check this.

        I wonder if this could ever fail in WebXR (or WebVR once we start calling RequestSession).

      • Patch Set #10, Line 142: return !device_->IsAccessAllowed(this) || !InFocusedFrame();

        The logic is backwards.

    • File third_party/blink/renderer/modules/xr/xr_device.cc:

      • Patch Set #5, Line 74: return nullptr;

        This is what I did initially and Michael said it was incorrect because there could be devices that s […]

        He's correct. However, all of this is temporary - hence the TODO.

        I didn't mean to only DCHECK. I was saying we should do that in addition.

    • File third_party/blink/renderer/modules/xr/xr_device.cc:

      • Patch Set #10, Line 33: const char kRequestSessionDenied[] = "Request session was denied.";

        We don't actually know and/or want to say whether the user denied the session.
        How about this?
        const char kSessionNotSupported[] = "The specified session configuration is not supported.";

      • Patch Set #10, Line 71:

        // TODO(https://crbug.com/828321): Use session options instead of the flag.
        bool is_ar = RuntimeEnabledFeatures::WebXRHitTestEnabled();

      • Patch Set #10, Line 72: DCHECK(RuntimeEnabledFeatures::WebXRHitTestEnabled() && supports_ar_);

        I think this should be:

        if (is_ar) {
        if (!supports_ar_)
        return kSessionNotSupported;
          // TODO(https://crbug.com/828321): Expose information necessary to check combinations.
        // For now, exclusive AR is not supported.
        if (options.exclusive())
        return kSessionNotSupported;
        } else {
        // TODO(https://crbug.com/828321): Remove this check when properly supporting multiple VRDevice registration.
        DCHECK(!supports_ar)
        // TODO(https://crbug.com/828321): Check that VR is supported.
        }
      • Patch Set #10, Line 165: kNotAllowedError

        We may at some point want to return NotSupported in some cases. What does the spec say we should return?

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 11
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 02:01:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 10:51:22 AM5/8/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #12 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also adds a check to both supportSession and requestSession to ensure
    the device supports AR capabilities when the hit-test flag is enabled.

    Bug: 837538

    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    12 files changed, 97 insertions(+), 10 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 12
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 12:36:20 PM5/8/18
    to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    View Change

    25 comments:

    • Commit Message:

      • Patch Set #10, Line 13: Also adds a check to both supportSession and requestSession to ensure

        Also adds a check to both supportSession and requestSession to ensure the device supports AR capabil […]

        Done

      • While this might address that bug (though it's not quite clear what it meant), the majority of this […]

        I thought I had to indicate what bugs this CL is resolving. 837538 is gone after this CL AFAIU. Should I also mention partially resolved bugs?

    • File chrome/browser/vr/service/vr_display_host.h:

      • nit: move up to line 73.

      • do we have to set this, or is it default false? […]

        Done

      • nit: Since we have a comment, add a newline before the comment and after the method.

        Done

      • These two should be below SetMagicWindowEnabled to match the base class.

      • If we are going to have a helper function, we should use it anywhere we check this. […]

      • these are already set, as the constructor calls SetXRDisplayInfo.

      • David mentioned that better to ensure them to be set to false here to ensure the call is made.

      • Patch Set #11, Line 105: lusive_

      • these are already set, as the constructor calls SetXRDisplayInfo.

      • I think this should be: […]

        I think the exclusive not supported if already being handled by the ARCoreDevice stating that does not support exclusive sessions, so re-checking here seems redundant. I will add all of the other checks.

      • Patch Set #10, Line 165: y_->RequestSessi

        We may at some point want to return NotSupported in some cases. […]

        This is what the spec says. My read from it is that there is nothing in the spec about other reasons why the session request could fail. I guess NotSupportError seems the closest to what could be used but I might be wrong. Should we file an issue in the spec repo for this?

        --------

        When the requestSession(options) method is invoked, the user agent MUST return a new Promise promise and run the following steps in parallel:

        Let device be the target XRDevice object.

        If the options are not supported by the device device, reject promise with a NotSupportedError and abort these steps.

        Let exclusive be the exclusive attribute of the options argument.

        If exclusive is true and device’s exclusive session is not null, reject promise with an InvalidStateError and abort these steps.

        If exclusive is true and the algorithm is not triggered by user activation, reject promise with a SecurityError and abort these steps.

        Let session be a new XRSession.

        Initialize the session session with the session description given by options.

        If exclusive is true set the device’s exclusive session to session.

        Else append session to device’s list of non-exclusive sessions.

        Resolve promise with session.

    • File third_party/blink/renderer/modules/xr/xr_device.cc:

      • is this dcheck going to hit when you don't have the flag enabled?

        Done

      • is this dcheck going to hit when you don't have the flag enabled?

        Done

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 14
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 16:36:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>
    Comment-In-Reply-To: Bill Orr <bil...@chromium.org>

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 5:30:56 PM5/8/18
    to David Dorwin, Bill Orr, Klaus Weidner, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #15 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also adds a check to both supportSession and requestSession to ensure
    the device supports AR capabilities when the hit-test flag is enabled.
    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    12 files changed, 119 insertions(+), 23 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 15
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 5:40:21 PM5/8/18
    to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Klaus Weidner, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    Fixes for some final review comments.

    View Change

    5 comments:

      • equestSession.
        // We require secure connections unless both the webvr flag and the
        // http flag are enabled.

        Maybe add a comment. […]

        @ddorwin: Please advise. Still, at this point this code still does not need to know about AR vs VR, correct?

    • File device/vr/public/mojom/vr_service.mojom:

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 17
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 21:40:19 +0000

    Klaus Weidner (Gerrit)

    unread,
    May 8, 2018, 6:03:05 PM5/8/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Klaus Weidner, David Dorwin, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    View Change

    1 comment:

      • I think it needs to be set.

        Mojo member booleans default to false. We depend on this in other places also, i.e. setting up transport options.

        I think tt's OK to explicitly set something false if that makes things clearer, i.e. it's an unexpected value for a device type, but we shouldn't add redundant "false" values to unrelated devices. That's just extra maintenance burden and churn.

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 17
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 22:03:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    David Dorwin (Gerrit)

    unread,
    May 8, 2018, 6:35:24 PM5/8/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Klaus Weidner, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    Looking good. There are a few remaining things to address.

    View Change

    9 comments:

      • Patch Set #10, Line 15:

        I thought I had to indicate what bugs this CL is resolving. 837538 is gone after this CL AFAIU. […]

      • I thought the whole purpose of the bug that led to the creation of this method was to have one singl […]

        One single point for the check, yes. See other comments in this reply. However, we're not fixing that in this CL.

    • File third_party/blink/renderer/modules/xr/xr_device.cc:

      • Patch Set #10, Line 72:

        I think the exclusive not supported if already being handled by the ARCoreDevice stating that does n […]

        Once we support both GVR and ARCore at the same time, supports_exclusive_ will be true on Android. Thus, we do need to check that both AR and exclusive are not requested. Addressing the first TODO will ensure that we can specifically check what is supported (including this combination), so we won't need this platform-independent (but based on Android) check anymore.


      • // For now, exclusive AR is not supported.
        if (options.exclusive())
        return kSessionNotSupported;

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 17
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 22:35:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 7:05:19 PM5/8/18
    to David Dorwin, Klaus Weidner, Bill Orr, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #18 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also adds a check to both supportSession and requestSession to ensure
    the device supports AR capabilities when the hit-test flag is enabled.

    Bug:


    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
    Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    12 files changed, 124 insertions(+), 23 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 18
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 7:11:57 PM5/8/18
    to David Dorwin, Klaus Weidner, Bill Orr, Michael Thiessen, Ian Vollick, Yaron Friedman, Max Rebuschatis, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Darin Fisher, chromium...@chromium.org, Kentaro Hara, Aaron Boodman

    Iker Jamardo uploaded patch set #19 to this change.

    View Change

    Add explicit requestSession call to the browser process for WebXR.

    Improves the support for requestSession in WebXR mainly focused on

    allowing ARCoreDevice to receive a call when the session request
    is made.

    Also adds a check to both supportSession and requestSession to ensure
    the device supports AR capabilities when the hit-test flag is enabled.

    Bug: 835037


    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
    Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    ---
    M chrome/browser/android/vr/arcore_device/arcore_device.cc
    M chrome/browser/android/vr/arcore_device/arcore_device.h
    M chrome/browser/vr/service/vr_display_host.cc
    M chrome/browser/vr/service/vr_display_host.h
    M device/vr/android/gvr/gvr_device.cc
    M device/vr/public/mojom/vr_service.mojom
    M device/vr/vr_device_base.cc
    M device/vr/vr_device_base.h
    M device/vr/vr_display_impl.cc
    M device/vr/vr_display_impl.h
    M third_party/blink/renderer/modules/xr/xr_device.cc
    M third_party/blink/renderer/modules/xr/xr_device.h
    12 files changed, 124 insertions(+), 23 deletions(-)

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 19
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-MessageType: newpatchset

    Iker Jamardo (Gerrit)

    unread,
    May 8, 2018, 7:23:37 PM5/8/18
    to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Klaus Weidner, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    View Change

    9 comments:

      • Yes, you should mention bugs that the CL addresses. […]

        It is part of 835037 so I will reference it here and in the PermissionRequest CL too.

    • Commit Message:

      • nit: newline before since the comment at line 249-250 only applies to the one method.

        Done

      • Once we support both GVR and ARCore at the same time, supports_exclusive_ will be true on Android. […]

        The problem in my opinion is that we are continuing with legacy code. The flags for WebXR should be more complex than just (supports exclusive or not). It should be supports exclusive in non ar: true. I think making this call at this moment is premature and actually shows a problem that a new redesign should overcome as the session options are more complex as they were for WebVR.

        Still, I will add the change as requested.

    • File third_party/blink/renderer/modules/xr/xr_device.cc:

    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
    Gerrit-Change-Number: 1046107
    Gerrit-PatchSet: 20
    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 May 2018 23:23:02 +0000

    David Dorwin (Gerrit)

    unread,
    May 9, 2018, 12:10:21 AM5/9/18
    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Klaus Weidner, Bill Orr, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

    LGTM. Thank you.

    Patch set 20:Code-Review +1

    View Change

      To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
      Gerrit-Change-Number: 1046107
      Gerrit-PatchSet: 20
      Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
      Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
      Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
      Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
      Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
      Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
      Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
      Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
      Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
      Gerrit-CC: Aaron Boodman <a...@chromium.org>
      Gerrit-CC: Darin Fisher <da...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Wed, 09 May 2018 04:10:19 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      Bill Orr (Gerrit)

      unread,
      May 9, 2018, 8:37:17 PM5/9/18
      to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Klaus Weidner, Michael Thiessen, Max Rebuschatis, Ian Vollick, Yaron Friedman, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

      Looks good to me. A few nits/opinions, but nothing blocking.

      Patch set 20:Code-Review +1

      View Change

      5 comments:

      To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
      Gerrit-Change-Number: 1046107
      Gerrit-PatchSet: 20
      Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
      Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
      Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
      Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
      Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
      Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
      Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
      Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
      Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
      Gerrit-CC: Aaron Boodman <a...@chromium.org>
      Gerrit-CC: Darin Fisher <da...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Thu, 10 May 2018 00:37:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      Yaron Friedman (Gerrit)

      unread,
      May 10, 2018, 9:38:05 AM5/10/18
      to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Bill Orr, David Dorwin, Klaus Weidner, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

      chrome/browser/android part lgtm but didn't review the reest

      Patch set 20:Code-Review +1

      View Change

        To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
        Gerrit-Change-Number: 1046107
        Gerrit-PatchSet: 20
        Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
        Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
        Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
        Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
        Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
        Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
        Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Thu, 10 May 2018 13:38:02 +0000

        Iker Jamardo (Gerrit)

        unread,
        May 10, 2018, 12:46:49 PM5/10/18
        to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Yaron Friedman, Bill Orr, David Dorwin, Klaus Weidner, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

        View Change

        6 comments:

          • should we stick a RequestSession in webvr too? (currently RequestSession doesn't do anything of int […]

            Won't this be resolved when Anna's refactor lands?

        To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
        Gerrit-Change-Number: 1046107
        Gerrit-PatchSet: 21
        Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
        Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
        Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
        Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
        Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
        Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
        Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Thu, 10 May 2018 16:46:47 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Bill Orr <bil...@chromium.org>

        Bill Orr (Gerrit)

        unread,
        May 10, 2018, 2:07:12 PM5/10/18
        to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Yaron Friedman, David Dorwin, Klaus Weidner, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

        View Change

        3 comments:

          • Would you be ok adding an = false to the mojom structure and then not have to do this in the devices […]

            I think mojo booleans are false by default. There shouldn't be a behavior change difference from what you have here - I'm just calling out that we have ~5 device implementations, and only 2 are updated. If we don't pay attention to the other devices, we could regress things. A safer pattern could be updating all of them or only the ones that set the value to true.

        • File device/vr/vr_display_impl.cc:

          • Won't this be resolved when Anna's refactor lands?

            potentially

            Once we depend on RequestSession being called, we could otherwise have issues with webvr when the ar flag is enabled.

        To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
        Gerrit-Change-Number: 1046107
        Gerrit-PatchSet: 21
        Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
        Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
        Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
        Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
        Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
        Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
        Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Thu, 10 May 2018 18:07:10 +0000

        Iker Jamardo (Gerrit)

        unread,
        May 10, 2018, 2:41:08 PM5/10/18
        to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Bill Orr, Yaron Friedman, David Dorwin, Klaus Weidner, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

        View Change

        1 comment:

          • Patch Set #20, Line 69: RequestSession

            Sounds like a good idea but I think it should be in arcore_device instead of here, correct?

          • This looks a bit harder than it initially looks as there could be more than one request session. I think Anna's new refactor should take care of this correctly handling each session requests independently (even though internally there will be just one ARCore session).

        To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
        Gerrit-Change-Number: 1046107
        Gerrit-PatchSet: 21
        Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
        Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
        Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
        Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
        Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
        Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
        Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
        Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Thu, 10 May 2018 18:41:06 +0000

        Klaus Weidner (Gerrit)

        unread,
        May 10, 2018, 2:44:45 PM5/10/18
        to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Klaus Weidner, Bill Orr, Yaron Friedman, David Dorwin, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

        modules/xr/ LGTM

        Patch set 21:Code-Review +1

        View Change

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 21
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Thu, 10 May 2018 18:44:44 +0000

          David Dorwin (Gerrit)

          unread,
          May 10, 2018, 9:23:38 PM5/10/18
          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

          View Change

          6 comments:

            • This looks a bit harder than it initially looks as there could be more than one request session. […]

              I think we'll need the device's method to call back into this class to do some work then call the |callback|. We'll do that as part of the refactoring (https://crbug.com/842025).

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 21
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Biao She <bs...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Fri, 11 May 2018 01:23:36 +0000

          David Dorwin (Gerrit)

          unread,
          May 10, 2018, 9:26:54 PM5/10/18
          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

          View Change

          1 comment:

            • Done

              I agree that we ideally shouldn't check this for WebXR, which is always secure. However, we want to use RequestSession() in both paths and tracking which API was called just adds complexity.

              Plus, when we move this to providing the interface (https://crbug.com/837538), we won't even be able to check on individual methods.

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 21
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Biao She <bs...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Fri, 11 May 2018 01:26:52 +0000

          David Dorwin (Gerrit)

          unread,
          May 11, 2018, 12:22:06 AM5/11/18
          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

          View Change

          1 comment:

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 21
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Biao She <bs...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Fri, 11 May 2018 04:22:04 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Gerrit-MessageType: comment

          Biao She (Gerrit)

          unread,
          May 11, 2018, 10:32:22 AM5/11/18
          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara


          chrome/browser/vr lgtm with nits

          Patch set 21:Code-Review +1

          View Change

          2 comments:

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 21
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Biao She <bs...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Fri, 11 May 2018 14:32:19 +0000

          David Dorwin (Gerrit)

          unread,
          May 11, 2018, 1:33:56 PM5/11/18
          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

          View Change

          2 comments:

            • It feel like this comment doesn't belong here? It feels it belongs to the implementation for Request […]

              I agree this is a little odd here. However, the intent is to move the check out of this class to where this class is instantiated. Since it's called from two places, we'd need TODOs in both. This is really an improvement that is unrelated to either call. It also seems better here than and the definition of this method.

          • File chrome/browser/vr/service/vr_display_host.cc:

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 21
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Biao She <bs...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Fri, 11 May 2018 17:33:54 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Biao She <bs...@chromium.org>
          Gerrit-MessageType: comment

          Iker Jamardo (Gerrit)

          unread,
          May 12, 2018, 12:14:14 AM5/12/18
          to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

          View Change

          11 comments:

            • I think we'll need the device's method to call back into this class to do some work then call the |c […]

              Done

            • I think we'll need the device's method to call back into this class to do some work then call the |c […]

              Done

          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
          Gerrit-Change-Number: 1046107
          Gerrit-PatchSet: 23
          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Biao She <bs...@chromium.org>
          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Sat, 12 May 2018 04:14:11 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>
          Comment-In-Reply-To: Bill Orr <bil...@chromium.org>
          Comment-In-Reply-To: Iker Jamardo <ijam...@chromium.org>

          Iker Jamardo (Gerrit)

          unread,
          May 12, 2018, 5:12:53 PM5/12/18
          to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

          Please, review this CL. Thank you very much.

          View Change

            To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: chromium/src
            Gerrit-Branch: master
            Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
            Gerrit-Change-Number: 1046107
            Gerrit-PatchSet: 23
            Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
            Gerrit-Reviewer: Biao She <bs...@chromium.org>
            Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
            Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
            Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
            Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
            Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
            Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
            Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
            Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
            Gerrit-CC: Aaron Boodman <a...@chromium.org>
            Gerrit-CC: Darin Fisher <da...@chromium.org>
            Gerrit-CC: Kentaro Hara <har...@chromium.org>
            Gerrit-Comment-Date: Sat, 12 May 2018 21:12:51 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: No
            Gerrit-MessageType: comment

            Iker Jamardo (Gerrit)

            unread,
            May 12, 2018, 5:13:38 PM5/12/18
            to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

            Please, review this CL. Thank you.

            View Change

              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
              Gerrit-Change-Number: 1046107
              Gerrit-PatchSet: 23
              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Biao She <bs...@chromium.org>
              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Sat, 12 May 2018 21:13:36 +0000

              David Dorwin (Gerrit)

              unread,
              May 13, 2018, 12:02:07 AM5/13/18
              to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

              Thanks.

              View Change

              1 comment:

              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
              Gerrit-Change-Number: 1046107
              Gerrit-PatchSet: 23
              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Biao She <bs...@chromium.org>
              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Sun, 13 May 2018 04:02:01 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Gerrit-MessageType: comment

              Daniel Cheng (Gerrit)

              unread,
              May 15, 2018, 3:46:57 AM5/15/18
              to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

              View Change

              1 comment:

                • It must also be called before magic window methods. […]

                  One thing I'm not really understanding is why we need an explicit RequestSession() call. At face value, it doesn't seem to really pass much information back to the renderer -- just a simple bool true/false.

                  What will happen if we don't call this method first? And how will the proposed Mojo interface refactoring rearrange this?

              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
              Gerrit-Change-Number: 1046107
              Gerrit-PatchSet: 23
              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Biao She <bs...@chromium.org>
              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Tue, 15 May 2018 07:46:55 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>
              Gerrit-MessageType: comment

              Iker Jamardo (Gerrit)

              unread,
              May 16, 2018, 3:19:01 PM5/16/18
              to blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

              View Change

              1 comment:

                • One thing I'm not really understanding is why we need an explicit RequestSession() call. […]

                  WebXR, compared to WebVR, requires to be able to request a session, and this operation may fail. WebVR directly assumes that when a device is available, is already initialized.

              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
              Gerrit-Change-Number: 1046107
              Gerrit-PatchSet: 23
              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Biao She <bs...@chromium.org>
              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Wed, 16 May 2018 19:18:58 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>
              Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
              Gerrit-MessageType: comment

              David Dorwin (Gerrit)

              unread,
              May 18, 2018, 3:11:29 PM5/18/18
              to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

              Daniel, let me know if you have more questions.

              View Change

              1 comment:

                • WebXR, compared to WebVR, requires to be able to request a session, and this operation may fail. […]

                  In the short term, we need a mechanism to request permissions before deciding whether to resolve the promise in Blink. See https://crrev.com/c/1055677. This CL was broken out of a larger CL so we could focus on the complexities of permissions in a smaller CL.

                  Soon, we will also need to select the correct AR/VR runtime based on information in the request. That will include information like adding is_exclusive and is_ar to the request call.

                  Currently, this call is only used for permissions for AR, which WebVR doesn't support. Thus, there are no problems with WebVR not calling it. We intend to make WebVR call it, but we need to refactor other interfaces that assume all devices should be provided to the application and don't provide an opportunity to initialize a specific device. This work is tracked by the second bug below. See https://crbug.com/842042.

              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
              Gerrit-Change-Number: 1046107
              Gerrit-PatchSet: 24
              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Biao She <bs...@chromium.org>
              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Fri, 18 May 2018 19:11:26 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: David Dorwin <ddo...@chromium.org>
              Comment-In-Reply-To: Iker Jamardo <ijam...@chromium.org>

              Daniel Cheng (Gerrit)

              unread,
              May 18, 2018, 5:33:31 PM5/18/18
              to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

              Patch set 24:Code-Review +1

              View Change

              1 comment:

              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
              Gerrit-Change-Number: 1046107
              Gerrit-PatchSet: 24
              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Biao She <bs...@chromium.org>
              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Fri, 18 May 2018 21:33:26 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              Gerrit-MessageType: comment

              Iker Jamardo (Gerrit)

              unread,
              May 21, 2018, 10:34:26 AM5/21/18
              to blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

              Patch set 25:Commit-Queue +2

              View Change

                To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                Gerrit-Change-Number: 1046107
                Gerrit-PatchSet: 25
                Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                Gerrit-Reviewer: Biao She <bs...@chromium.org>
                Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                Gerrit-CC: Darin Fisher <da...@chromium.org>
                Gerrit-CC: Kentaro Hara <har...@chromium.org>
                Gerrit-Comment-Date: Mon, 21 May 2018 14:34:24 +0000

                Commit Bot (Gerrit)

                unread,
                May 21, 2018, 10:34:29 AM5/21/18
                to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                CQ is trying the patch.

                Note: The patchset sent to CQ was uploaded after this CL was approved.
                "Rebase to master" https://chromium-review.googlesource.com/c/1046107/25

                Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/1046107/25

                Bot data: {"action": "start", "triggered_at": "2018-05-21T14:34:24.0Z", "cq_cfg_revision": "51d0c88a708dbef53e0e37b949ac3666c7235016", "revision": "cb71d348e6a457997e17b53a8cb74f977ed92642"}

                View Change

                  To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-Project: chromium/src
                  Gerrit-Branch: master
                  Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                  Gerrit-Change-Number: 1046107
                  Gerrit-PatchSet: 25
                  Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                  Gerrit-Reviewer: Biao She <bs...@chromium.org>
                  Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                  Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                  Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                  Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                  Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                  Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                  Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                  Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                  Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                  Gerrit-CC: Kentaro Hara <har...@chromium.org>
                  Gerrit-Comment-Date: Mon, 21 May 2018 14:34:28 +0000

                  Commit Bot (Gerrit)

                  unread,
                  May 21, 2018, 12:30:23 PM5/21/18
                  to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Daniel Cheng, David Dorwin, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara
                  Try jobs failed on following builders:
                  linux_chromium_rel_ng on luci.chromium.try (JOB_FAILED, https://ci.chromium.org/p/chromium/builders/luci.chromium.try/linux_chromium_rel_ng/98343)

                  View Change

                    To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-Project: chromium/src
                    Gerrit-Branch: master
                    Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                    Gerrit-Change-Number: 1046107
                    Gerrit-PatchSet: 25
                    Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                    Gerrit-Reviewer: Biao She <bs...@chromium.org>
                    Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                    Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                    Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                    Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                    Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                    Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                    Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                    Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                    Gerrit-CC: Kentaro Hara <har...@chromium.org>
                    Gerrit-Comment-Date: Mon, 21 May 2018 16:30:19 +0000

                    David Dorwin (Gerrit)

                    unread,
                    May 21, 2018, 9:25:38 PM5/21/18
                    to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, Commit Bot, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                    Patch set 26:Commit-Queue +2

                    View Change

                      To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: chromium/src
                      Gerrit-Branch: master
                      Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                      Gerrit-Change-Number: 1046107
                      Gerrit-PatchSet: 26
                      Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                      Gerrit-Reviewer: Biao She <bs...@chromium.org>
                      Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                      Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                      Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                      Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                      Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                      Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                      Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                      Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                      Gerrit-CC: Kentaro Hara <har...@chromium.org>
                      Gerrit-Comment-Date: Tue, 22 May 2018 01:25:35 +0000

                      Commit Bot (Gerrit)

                      unread,
                      May 21, 2018, 9:25:42 PM5/21/18
                      to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                      CQ is trying the patch.

                      Note: The patchset sent to CQ was uploaded after this CL was approved.

                      "Rebase" https://chromium-review.googlesource.com/c/1046107/26

                      Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/1046107/26

                      Bot data: {"action": "start", "triggered_at": "2018-05-22T01:25:35.0Z", "cq_cfg_revision": "532569b00f8a3a2da1ba8205a83c9048284fb5c3", "revision": "ccb19fb5bf37989f3a9d6a3d87d468446ae28c3b"}

                      Gerrit-Comment-Date: Tue, 22 May 2018 01:25:40 +0000

                      Commit Bot (Gerrit)

                      unread,
                      May 21, 2018, 11:00:48 PM5/21/18
                      to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara
                      Try jobs failed on following builders:
                        mac_chromium_rel_ng on luci.chromium.try (JOB_FAILED, https://ci.chromium.org/p/chromium/builders/luci.chromium.try/mac_chromium_rel_ng/51615)

                      View Change

                        To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                        Gerrit-Project: chromium/src
                        Gerrit-Branch: master
                        Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                        Gerrit-Change-Number: 1046107
                        Gerrit-PatchSet: 26
                        Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                        Gerrit-Reviewer: Biao She <bs...@chromium.org>
                        Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                        Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                        Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                        Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                        Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                        Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                        Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                        Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                        Gerrit-CC: Aaron Boodman <a...@chromium.org>
                        Gerrit-CC: Commit Bot <commi...@chromium.org>
                        Gerrit-CC: Darin Fisher <da...@chromium.org>
                        Gerrit-CC: Kentaro Hara <har...@chromium.org>
                        Gerrit-Comment-Date: Tue, 22 May 2018 03:00:47 +0000

                        Iker Jamardo (Gerrit)

                        unread,
                        May 24, 2018, 1:56:23 AM5/24/18
                        to blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Commit Bot, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                        Patch set 28:Commit-Queue +2

                        View Change

                          To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                          Gerrit-Project: chromium/src
                          Gerrit-Branch: master
                          Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                          Gerrit-Change-Number: 1046107
                          Gerrit-PatchSet: 28
                          Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                          Gerrit-Reviewer: Biao She <bs...@chromium.org>
                          Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                          Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                          Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                          Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                          Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                          Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                          Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                          Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                          Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                          Gerrit-CC: Kentaro Hara <har...@chromium.org>
                          Gerrit-Comment-Date: Thu, 24 May 2018 05:56:22 +0000

                          Commit Bot (Gerrit)

                          unread,
                          May 24, 2018, 1:56:31 AM5/24/18
                          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                          CQ is trying the patch.

                          Note: The patchset sent to CQ was uploaded after this CL was approved.

                          "Fixes layout test failure." https://chromium-review.googlesource.com/c/1046107/28

                          Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/1046107/28

                          Bot data: {"action": "start", "triggered_at": "2018-05-24T05:56:22.0Z", "cq_cfg_revision": "f5647662bbf78a128e2fe6956afaa13fb042b968", "revision": "4c7423d7cb1573b9ac24e2090cf431eb1cdcb67b"}

                          Gerrit-Comment-Date: Thu, 24 May 2018 05:56:30 +0000

                          Commit Bot (Gerrit)

                          unread,
                          May 24, 2018, 3:04:29 AM5/24/18
                          to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara
                          Try jobs failed on following builders:
                            mac_chromium_rel_ng on luci.chromium.try (JOB_FAILED, https://ci.chromium.org/p/chromium/builders/luci.chromium.try/mac_chromium_rel_ng/54150)

                          View Change

                            To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                            Gerrit-Project: chromium/src
                            Gerrit-Branch: master
                            Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                            Gerrit-Change-Number: 1046107
                            Gerrit-PatchSet: 28
                            Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                            Gerrit-Reviewer: Biao She <bs...@chromium.org>
                            Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                            Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                            Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                            Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                            Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                            Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                            Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                            Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                            Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                            Gerrit-CC: Aaron Boodman <a...@chromium.org>
                            Gerrit-CC: Commit Bot <commi...@chromium.org>
                            Gerrit-CC: Darin Fisher <da...@chromium.org>
                            Gerrit-CC: Kentaro Hara <har...@chromium.org>
                            Gerrit-Comment-Date: Thu, 24 May 2018 07:04:28 +0000

                            Iker Jamardo (Gerrit)

                            unread,
                            May 24, 2018, 3:27:30 PM5/24/18
                            to blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Commit Bot, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                            Patch set 29:Commit-Queue +2

                            View Change

                              To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                              Gerrit-Project: chromium/src
                              Gerrit-Branch: master
                              Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                              Gerrit-Change-Number: 1046107
                              Gerrit-PatchSet: 29
                              Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                              Gerrit-Reviewer: Biao She <bs...@chromium.org>
                              Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                              Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                              Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                              Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                              Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                              Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                              Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                              Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                              Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                              Gerrit-CC: Aaron Boodman <a...@chromium.org>
                              Gerrit-CC: Commit Bot <commi...@chromium.org>
                              Gerrit-CC: Darin Fisher <da...@chromium.org>
                              Gerrit-CC: Kentaro Hara <har...@chromium.org>
                              Gerrit-Comment-Date: Thu, 24 May 2018 19:27:28 +0000
                              Gerrit-HasComments: No
                              Gerrit-Has-Labels: Yes
                              Gerrit-MessageType: comment

                              Commit Bot (Gerrit)

                              unread,
                              May 24, 2018, 3:27:39 PM5/24/18
                              to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                              CQ is trying the patch.

                              Note: The patchset sent to CQ was uploaded after this CL was approved.

                              "Fix for layout test." https://chromium-review.googlesource.com/c/1046107/29

                              Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/1046107/29

                              Bot data: {"action": "start", "triggered_at": "2018-05-24T19:27:28.0Z", "cq_cfg_revision": "f5647662bbf78a128e2fe6956afaa13fb042b968", "revision": "7edab320dc6f6921274e985e9fc8f33c46370ce5"}

                              Gerrit-Comment-Date: Thu, 24 May 2018 19:27:37 +0000

                              Commit Bot (Gerrit)

                              unread,
                              May 24, 2018, 4:40:47 PM5/24/18
                              to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara
                              Try jobs failed on following builders:
                                linux_chromium_rel_ng on luci.chromium.try (JOB_FAILED, https://ci.chromium.org/p/chromium/builders/luci.chromium.try/linux_chromium_rel_ng/102080)

                              View Change

                                To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                                Gerrit-Project: chromium/src
                                Gerrit-Branch: master
                                Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                                Gerrit-Change-Number: 1046107
                                Gerrit-PatchSet: 29
                                Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                                Gerrit-Reviewer: Biao She <bs...@chromium.org>
                                Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                                Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                                Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                                Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                                Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                                Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                                Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                                Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                                Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                Gerrit-CC: Commit Bot <commi...@chromium.org>
                                Gerrit-CC: Darin Fisher <da...@chromium.org>
                                Gerrit-CC: Kentaro Hara <har...@chromium.org>
                                Gerrit-Comment-Date: Thu, 24 May 2018 20:40:46 +0000

                                Iker Jamardo (Gerrit)

                                unread,
                                May 25, 2018, 6:40:49 PM5/25/18
                                to blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Commit Bot, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                                Patch set 32:Commit-Queue +2

                                View Change

                                  To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                                  Gerrit-Project: chromium/src
                                  Gerrit-Branch: master
                                  Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                                  Gerrit-Change-Number: 1046107
                                  Gerrit-PatchSet: 32
                                  Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                                  Gerrit-Reviewer: Biao She <bs...@chromium.org>
                                  Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                                  Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                                  Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                                  Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                                  Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                                  Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                                  Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                                  Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                                  Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                                  Gerrit-CC: Kentaro Hara <har...@chromium.org>
                                  Gerrit-Comment-Date: Fri, 25 May 2018 22:40:47 +0000

                                  Commit Bot (Gerrit)

                                  unread,
                                  May 25, 2018, 6:40:52 PM5/25/18
                                  to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                                  CQ is trying the patch.

                                  Note: The patchset sent to CQ was uploaded after this CL was approved.

                                  "Fixes layout test errors." https://chromium-review.googlesource.com/c/1046107/32

                                  Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/1046107/32

                                  Bot data: {"action": "start", "triggered_at": "2018-05-25T22:40:47.0Z", "cq_cfg_revision": "6a25833cb93164fb378d8087f9dae5fc28fc9b1e", "revision": "07c2aea747eed0e275469b11cdb7cbfa24920710"}

                                  Gerrit-Comment-Date: Fri, 25 May 2018 22:40:51 +0000

                                  Commit Bot (Gerrit)

                                  unread,
                                  May 25, 2018, 6:45:12 PM5/25/18
                                  to Iker Jamardo, blink-...@chromium.org, feature-v...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, jmedle...@chromium.org, David Dorwin, Daniel Cheng, Biao She, Klaus Weidner, Bill Orr, Yaron Friedman, Michael Thiessen, Max Rebuschatis, Ian Vollick, Aaron Boodman, chromium...@chromium.org, Darin Fisher, Kentaro Hara

                                  Commit Bot merged this change.

                                  View Change

                                  Approvals: David Dorwin: Looks good to me Daniel Cheng: Looks good to me Yaron Friedman: Looks good to me Biao She: Looks good to me Klaus Weidner: Looks good to me Bill Orr: Looks good to me Iker Jamardo: Commit
                                  Add explicit requestSession call to the browser process for WebXR.

                                  Improves the support for requestSession in WebXR mainly focused on
                                  allowing ARCoreDevice to receive a call when the session request
                                  is made.

                                  Also adds a check to both supportSession and requestSession to ensure
                                  the device supports AR capabilities when the hit-test flag is enabled.

                                  Bug: 835037

                                  Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
                                  Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                                  Reviewed-on: https://chromium-review.googlesource.com/1046107
                                  Commit-Queue: Iker Jamardo <ijam...@chromium.org>
                                  Reviewed-by: Daniel Cheng <dch...@chromium.org>
                                  Reviewed-by: Klaus Weidner <kla...@chromium.org>
                                  Reviewed-by: Biao She <bs...@chromium.org>
                                  Reviewed-by: David Dorwin <ddo...@chromium.org>
                                  Reviewed-by: Bill Orr <bil...@chromium.org>
                                  Reviewed-by: Yaron Friedman <yfri...@chromium.org>
                                  Cr-Commit-Position: refs/heads/master@{#562044}
                                  ---
                                  M chrome/browser/android/vr/arcore_device/arcore_device.cc
                                  M chrome/browser/android/vr/arcore_device/arcore_device.h
                                  M chrome/browser/vr/service/vr_display_host.cc
                                  M chrome/browser/vr/service/vr_display_host.h
                                  M device/vr/public/mojom/vr_service.mojom
                                  M device/vr/vr_device.h
                                  M device/vr/vr_device_base.cc
                                  M device/vr/vr_device_base.h
                                  M device/vr/vr_display_impl.cc
                                  M device/vr/vr_display_impl.h
                                  M third_party/WebKit/LayoutTests/xr/resources/xr-device-mocking.js
                                  M third_party/WebKit/LayoutTests/xr/resources/xr-test-utils.js
                                  M third_party/blink/renderer/modules/xr/xr_device.cc
                                  M third_party/blink/renderer/modules/xr/xr_device.h
                                  M third_party/blink/renderer/modules/xr/xr_frame_provider.cc
                                  15 files changed, 159 insertions(+), 35 deletions(-)


                                  To view, visit change 1046107. To unsubscribe, or for help writing mail filters, visit settings.

                                  Gerrit-Project: chromium/src
                                  Gerrit-Branch: master
                                  Gerrit-Change-Id: I8090f64a981114b130e446025ec6299fbb5619e4
                                  Gerrit-Change-Number: 1046107
                                  Gerrit-PatchSet: 33
                                  Gerrit-Owner: Iker Jamardo <ijam...@chromium.org>
                                  Gerrit-Reviewer: Biao She <bs...@chromium.org>
                                  Gerrit-Reviewer: Bill Orr <bil...@chromium.org>
                                  Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
                                  Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
                                  Gerrit-Reviewer: David Dorwin <ddo...@chromium.org>
                                  Gerrit-Reviewer: Ian Vollick <vol...@chromium.org>
                                  Gerrit-Reviewer: Iker Jamardo <ijam...@chromium.org>
                                  Gerrit-Reviewer: Klaus Weidner <kla...@chromium.org>
                                  Gerrit-Reviewer: Max Rebuschatis <linco...@chromium.org>
                                  Gerrit-Reviewer: Michael Thiessen <mthi...@chromium.org>
                                  Gerrit-Reviewer: Yaron Friedman <yfri...@chromium.org>
                                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                                  Gerrit-CC: Kentaro Hara <har...@chromium.org>
                                  Gerrit-MessageType: merged
                                  Reply all
                                  Reply to author
                                  Forward
                                  0 new messages