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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 51b9177457e1af899003fd4dcc2cf9f4a6a6d154..aa39ff1c37b02b7d4feed6734cecae30ce62cc63 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1751,6 +1751,18 @@ void WebContentsImpl::RequestMediaAccessPermission(
}
}
+void WebContentsImpl::AllowMicAccessBasedOnPolicyAndAppPermissions(
+ const GURL& security_origin,
+ const MediaAccessResponseCallback& callback) {
+ if (delegate_) {
+ delegate_->AllowMicAccessBasedOnPolicyAndAppPermissions(this,
+ security_origin,
+ callback);
+ } else {
+ callback.Run(false);
+ }
+}
+
SessionStorageNamespace* WebContentsImpl::GetSessionStorageNamespace(
SiteInstance* instance) {
return controller_.GetSessionStorageNamespace(instance);

Powered by Google App Engine
This is Rietveld 408576698