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

Unified Diff: extensions/shell/browser/shell_app_delegate.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/shell/browser/shell_app_delegate.cc
diff --git a/extensions/shell/browser/shell_app_delegate.cc b/extensions/shell/browser/shell_app_delegate.cc
index 4380d6a0f8ddfc0c1211b31398f5ab7d8bf9b735..483da67032d52a3c581f5b5c294284573962eaed 100644
--- a/extensions/shell/browser/shell_app_delegate.cc
+++ b/extensions/shell/browser/shell_app_delegate.cc
@@ -62,6 +62,15 @@ void ShellAppDelegate::RequestMediaAccessPermission(
web_contents, request, callback, extension);
}
+bool ShellAppDelegate::CheckMediaAccessPermission(
+ content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type,
+ const Extension* extension) {
+ media_capture_util::VerifyMediaAccessPermission(type, extension);
+ return true;
+}
+
int ShellAppDelegate::PreferredIconSize() {
return extension_misc::EXTENSION_ICON_SMALL;
}
« no previous file with comments | « extensions/shell/browser/shell_app_delegate.h ('k') | extensions/shell/browser/shell_extension_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698