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

Unified Diff: extensions/browser/app_window/app_web_contents_helper.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
« no previous file with comments | « extensions/browser/app_window/app_web_contents_helper.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/app_window/app_web_contents_helper.cc
diff --git a/extensions/browser/app_window/app_web_contents_helper.cc b/extensions/browser/app_window/app_web_contents_helper.cc
index 54153ac926c5286144b97ecdb1046f3b67bf64ca..fb6647937e5fadeb41ee913e8ae2b49c862c91f4 100644
--- a/extensions/browser/app_window/app_web_contents_helper.cc
+++ b/extensions/browser/app_window/app_web_contents_helper.cc
@@ -97,6 +97,17 @@ void AppWebContentsHelper::RequestMediaAccessPermission(
web_contents_, request, callback, extension);
}
+bool AppWebContentsHelper::CheckMediaAccessPermission(
+ const GURL& security_origin,
+ content::MediaStreamType type) const {
+ const Extension* extension = GetExtension();
+ if (!extension)
+ return false;
+
+ return app_delegate_->CheckMediaAccessPermission(
+ web_contents_, security_origin, type, extension);
+}
+
const Extension* AppWebContentsHelper::GetExtension() const {
return ExtensionRegistry::Get(browser_context_)
->enabled_extensions()
« no previous file with comments | « extensions/browser/app_window/app_web_contents_helper.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698