Use embedder frame in WebVideoPermissionHelper::CheckMediaAccessPermission
This CL makes CheckMediaAccessPermission pass the main RenderFrameHost of the embedder WebContents instead of the original RenderFrameHost. This makes it work similarly to RequestMediaAccessPermission(), which uses the embedder WebContents instead of the original WebContents, and fixes an issue with device enumerations when using ChromeOS logins, where the permission check always failed. Note that CheckMediaAccessPermission() originally used the embedder WebContents until the switch to RenderFrameHost in crrev.com/540967. Bug: 1086756 Change-Id: I5342c8d2617144caca7e451af0f12f31b5c6bb5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2294807Reviewed-by:Lucas Gadani <lfg@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#791201}
Showing
Please register or sign in to comment