MSE: DCHECK that MediaSourceRegistry |url| params are non-empty
Improves MediaSourceRegistry code readability by DCHECKing in its URLRegistry overrides and in its LookupMediaSource interface that the KURL |url| in the former, and the wtf::String |url| in the latter are not empty (or null). The former is prevented by the FILE API PublicUrlManager already, and the latter is now (by this change) protected against in MediaSourceAttachment::LookupMediaSource(). This is a follow-up on a review comment in an MSE-in-Worker CL: https://chromium-review.googlesource.com/c/chromium/src/+/2300804/7/third_party/blink/renderer/modules/mediasource/media_source_registry_impl.cc#74 BUG=878133 Change-Id: I2ef93b8d3fc894ee71b1a605acdc58df88e722d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346797 Auto-Submit: Matthew Wolenetz <wolenetz@chromium.org> Commit-Queue: Philip Jägenstedt <foolip@chromium.org> Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#797640}
Showing
Please register or sign in to comment