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

Unified Diff: content/renderer/pepper/content_renderer_pepper_host_factory.cc

Issue 845823002: PPAPI: Remove whitelist checks for PPB_VideoDecoder now that it's stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 11 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/renderer/pepper/content_renderer_pepper_host_factory.cc
diff --git a/content/renderer/pepper/content_renderer_pepper_host_factory.cc b/content/renderer/pepper/content_renderer_pepper_host_factory.cc
index 383d8323e0d0f2039e909cbbcec4d3d670fd1041..67f49ad97877bf8cdcd6603a406e8da1d184b3e3 100644
--- a/content/renderer/pepper/content_renderer_pepper_host_factory.cc
+++ b/content/renderer/pepper/content_renderer_pepper_host_factory.cc
@@ -74,19 +74,6 @@ bool CanUseCompositorAPI(const RendererPpapiHost* host, PP_Instance instance) {
document_url);
}
-bool CanUseVideoDecodeAPI(const RendererPpapiHost* host, PP_Instance instance) {
- blink::WebPluginContainer* container =
- host->GetContainerForInstance(instance);
- if (!container)
- return false;
-
- GURL document_url = container->element().document().url();
- ContentRendererClient* content_renderer_client =
- GetContentClient()->renderer();
- return content_renderer_client->IsPluginAllowedToUseVideoDecodeAPI(
- document_url);
-}
-
} // namespace
ContentRendererPepperHostFactory::ContentRendererPepperHostFactory(
@@ -171,12 +158,9 @@ scoped_ptr<ResourceHost> ContentRendererPepperHostFactory::CreateResourceHost(
case PpapiHostMsg_URLLoader_Create::ID:
return scoped_ptr<ResourceHost>(
new PepperURLLoaderHost(host_, false, instance, resource));
- case PpapiHostMsg_VideoDecoder_Create::ID: {
- if (!CanUseVideoDecodeAPI(host_, instance))
- return scoped_ptr<ResourceHost>();
+ case PpapiHostMsg_VideoDecoder_Create::ID:
return scoped_ptr<ResourceHost>(
new PepperVideoDecoderHost(host_, instance, resource));
- }
case PpapiHostMsg_WebSocket_Create::ID:
return scoped_ptr<ResourceHost>(
new PepperWebSocketHost(host_, instance, resource));
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/shell/renderer/shell_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698