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

Unified Diff: apps/custom_launcher_page_contents.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 | « apps/custom_launcher_page_contents.h ('k') | athena/extensions/chrome/athena_app_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/custom_launcher_page_contents.cc
diff --git a/apps/custom_launcher_page_contents.cc b/apps/custom_launcher_page_contents.cc
index 023c30580dd8dd625481d55e2d8ae236b61176f4..7a2f4b2b06e0885975f6ebd9daa60c250b7c27bd 100644
--- a/apps/custom_launcher_page_contents.cc
+++ b/apps/custom_launcher_page_contents.cc
@@ -126,6 +126,14 @@ void CustomLauncherPageContents::RequestMediaAccessPermission(
helper_->RequestMediaAccessPermission(request, callback);
}
+bool CustomLauncherPageContents::CheckMediaAccessPermission(
+ content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type) {
+ DCHECK_EQ(web_contents_.get(), web_contents);
+ return helper_->CheckMediaAccessPermission(security_origin, type);
+}
+
bool CustomLauncherPageContents::OnMessageReceived(
const IPC::Message& message) {
bool handled = true;
« no previous file with comments | « apps/custom_launcher_page_contents.h ('k') | athena/extensions/chrome/athena_app_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698