Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/web_view/web_view_guest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc
index 0522514a7b2c71f63acc0cca8db40dd17222aa14..bfc29f5130db60b39caf6c3faf1d650d30b19466 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_guest.cc
@@ -791,6 +791,13 @@ void WebViewGuest::RequestMediaAccessPermission(
callback);
}
+bool WebViewGuest::CheckMediaAccessPermission(content::WebContents* source,
+ const GURL& security_origin,
+ content::MediaStreamType type) {
+ return web_view_permission_helper_->CheckMediaAccessPermission(
+ source, security_origin, type);
+}
+
void WebViewGuest::CanDownload(
content::RenderViewHost* render_view_host,
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698