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

Unified Diff: chrome/browser/ui/browser.cc

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Updated unit test MediaStreamDispatcherHost. 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: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 95b39dd89bff2fcb8ccd82de6793ca296a74289b..b1f22420b9db03778c5d795c65b4db001514ce9d 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1761,6 +1761,12 @@ void Browser::RequestMediaAccessPermission(
::RequestMediaAccessPermission(web_contents, profile_, request, callback);
}
+bool Browser::CheckMediaAccessPermission(content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type) {
+ return ::CheckMediaAccessPermission(web_contents, security_origin, type);
+}
+
bool Browser::RequestPpapiBrokerPermission(
WebContents* web_contents,
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698