Chromium Code Reviews| Index: ppapi/proxy/ppp_content_decryptor_private_proxy.cc |
| diff --git a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc |
| index 1b472074ed82c1f3bb3b485c34b14416e5d6a9f3..9aca5e7ee6557378b8a23112194c993b04d62d6d 100644 |
| --- a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc |
| +++ b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc |
| @@ -75,22 +75,6 @@ PP_Var ExtractReceivedVarAndAddRef(Dispatcher* dispatcher, |
| return var; |
| } |
| -// Increments the reference count on |resource| to ensure that it remains valid |
| -// until the plugin receives the resource within the asynchronous message sent |
| -// from the proxy. The plugin side takes ownership of that reference. Returns |
| -// PP_TRUE when the reference is successfully added, PP_FALSE otherwise. |
| -PP_Bool AddRefResourceForPlugin(HostDispatcher* dispatcher, |
| - PP_Resource resource) { |
| - const PPB_Core* core = static_cast<const PPB_Core*>( |
| - dispatcher->local_get_interface()(PPB_CORE_INTERFACE)); |
| - if (!core) { |
| - NOTREACHED(); |
| - return PP_FALSE; |
| - } |
| - core->AddRefResource(resource); |
| - return PP_TRUE; |
| -} |
|
dmichael (off chromium)
2012/12/13 19:20:35
I was confused when reading the CL... I think thi
|
| - |
| bool InitializePppDecryptorBuffer(PP_Instance instance, |
| HostDispatcher* dispatcher, |
| PP_Resource resource, |
| @@ -107,9 +91,6 @@ bool InitializePppDecryptorBuffer(PP_Instance instance, |
| return true; |
| } |
| - if (!AddRefResourceForPlugin(dispatcher, resource)) |
| - return false; |
| - |
| HostResource host_resource; |
| host_resource.SetHostResource(instance, resource); |