Index: trunk/src/ppapi/proxy/file_io_resource.cc |
=================================================================== |
--- trunk/src/ppapi/proxy/file_io_resource.cc (revision 221543) |
+++ trunk/src/ppapi/proxy/file_io_resource.cc (working copy) |
@@ -111,13 +111,9 @@ |
if (rv != PP_OK) |
return rv; |
- // Take a reference on the FileRef resource while we're opening the file; we |
- // don't want the plugin destroying it during the Open operation. |
- file_ref_ = enter.resource(); |
- |
Call<PpapiPluginMsg_FileIO_OpenReply>(RENDERER, |
PpapiHostMsg_FileIO_Open( |
- file_ref, |
+ enter.resource()->host_resource().host_resource(), |
open_flags), |
base::Bind(&FileIOResource::OnPluginMsgOpenFileComplete, this, |
callback)); |
@@ -414,9 +410,6 @@ |
const ResourceMessageReplyParams& params) { |
DCHECK(state_manager_.get_pending_operation() == |
FileIOStateManager::OPERATION_EXCLUSIVE); |
- |
- // Release the FileRef resource. |
- file_ref_ = NULL; |
if (params.result() == PP_OK) |
state_manager_.SetOpenSucceed(); |