media: Trigger Infobar on Mac ARM on EME query failure
CDM on Mac ARM is not ready yet. When requestMediaKeySystemAccess() fails on Mac ARM, we reject the promise with "Unsupported platform" and trigger an infobar to notify user. The infobar will be triggered at most once per render process. Since the infobar can only be triggered in the browser process, a new mojo service CdmInfobarService is added. Note that even though there already exists KeySystemSupport service, which is also implemented in the browser process, we cannot trigger the infobar there, because the infobar requires a WebContents context, while the KeySystemSupport service is bound to a render process instead of a render frame. Change-Id: Ia85a1f2b097b0c2d26d12cc3e9363c34a25691a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404716Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:
John Rummell <jrummell@chromium.org> Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#807631}
Showing
Please register or sign in to comment