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

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index b3d2d708616e98b42a07824665fab8fdffca9f55..3d18cee71d2acfa1fbb5087ef6295117161e8213 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -195,6 +195,14 @@ bool WebContentsDelegate::CheckMediaAccessPermission(
return false;
}
+#if defined(OS_ANDROID)
+void WebContentsDelegate::RequestMediaDecodePermission(
+ WebContents* web_contents,
+ const base::Callback<void(bool)>& callback) {
+ callback.Run(false);
+}
+#endif
+
bool WebContentsDelegate::RequestPpapiBrokerPermission(
WebContents* web_contents,
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698