Description[Media Router] Return NotFoundError on dialog exit if appropriate
The MR dialog will always be opened when starting a PresentationRequest,
even if there are no sinks that support the presentation url. The
default cast mode will then be some form of mirroring. This means that
whether the user selects a device in the dialog or not, the promise from
start() will be rejected with an AbortError. Instead, a NotFoundError
should be used if there were no devices which supported the presentation
url.
BUG=621161
Committed: https://crrev.com/21d9a27daad3d0f6c3a9ad15818a099c728a3b3c
Cr-Commit-Position: refs/heads/master@{#403336}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Address nits, add unit tests, add integration test #
Total comments: 6
Patch Set 3 : Address comments, add no-sinks integration test, update test data json format #Messages
Total messages: 12 (3 generated)
|