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

Unified Diff: extensions/shell/browser/shell_app_window.cc

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: git cl format. Don't blame me. 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_window.cc
diff --git a/extensions/shell/browser/shell_app_window.cc b/extensions/shell/browser/shell_app_window.cc
index 165dd5ce9a8ffab02f69004b54dfe116b9bbad03..085c853daa9724d08fba6a247fac35ea9aae35da 100644
--- a/extensions/shell/browser/shell_app_window.cc
+++ b/extensions/shell/browser/shell_app_window.cc
@@ -70,6 +70,14 @@ void ShellAppWindow::RequestMediaAccessPermission(
web_contents, request, callback, extension_);
}
+bool ShellAppWindow::CheckMediaAccessPermission(
+ content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type) {
+ media_capture_util::VerifyMediaAccessPermission(type, extension_);
+ return true;
+}
+
bool ShellAppWindow::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ShellAppWindow, message)
« extensions/shell/browser/media_capture_util.cc ('K') | « extensions/shell/browser/shell_app_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698