Ensure that inline sessions can be requested when enable_vr=false
There were a couple of things that were happening that were blocking our ability to return inline sessions. The first thing that was happening was that initial promises would end up hanging. This is because while we have a mojo reference to the server, the browser side had nothing so we would get a disconnect error, which we didn't notify any pending promises after. The second issue was that we were always rejecting sessions if we didn't have a service (i.e. because we hit an error earlier and caused it to get disconnected). Finally, we weren't guarading against the service being null, and could therefore crash after receiving a disconnect error. Bug: 944285,936264 Change-Id: I252361877243e9762ba438763ca54b902ee05b37 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548365 Commit-Queue: Alexander Cooper <alcooper@chromium.org> Reviewed-by:David Dorwin <ddorwin@chromium.org> Reviewed-by:
Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#647075}
Showing
Please register or sign in to comment