Reland "media: Trigger Infobar on Mac ARM on EME query failure"
This reverts commit cbf7394d. Reason for revert: reland with fix The original CL works fine on Windows and on Mac x86_64 build. But it fails on Mac ARM64 build. In the test there's also a variable called "result", which might caused some naming conflict. Original change's description: > Revert "media: Trigger Infobar on Mac ARM on EME query failure" > > This reverts commit a98a8fa4. > > Reason for revert: causing test failure > > Original change's description: > > 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/+/2404716 > > Reviewed-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} > > TBR=ellyjones@chromium.org,dcheng@chromium.org,xhwang@chromium.org,jrummell@chromium.org > > Change-Id: Ia3e06b8685f70b3e3e000df2bbf24054bcc97ada > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414759 > Reviewed-by: Xiaohan Wang <xhwang@chromium.org> > Commit-Queue: Xiaohan Wang <xhwang@chromium.org> > Cr-Commit-Position: refs/heads/master@{#807649} TBR=ellyjones@chromium.org,dcheng@chromium.org,xhwang@chromium.org,jrummell@chromium.org # Not skipping CQ checks because this is a reland. Change-Id: I91a251bd5bfc7f5cae2e9e70c380e727f913eaa0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2415274 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Reviewed-by:John Rummell <jrummell@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#807959}
Showing
Please register or sign in to comment