Index: content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc |
diff --git a/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc b/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc |
index 27ba37dfcca0ddbda4168912d1448b634d1d7dac..096b908266f594e89177742608b5dded11a00047 100644 |
--- a/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc |
+++ b/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc |
@@ -90,21 +90,16 @@ int32_t PepperExternalFileRefBackend::GetAbsolutePath( |
ppapi::host::ReplyMessageContext reply_context) { |
host_->SendReply(reply_context, |
PpapiPluginMsg_FileRef_GetAbsolutePathReply(path_.AsUTF8Unsafe())); |
- return PP_OK; |
+ |
+ // Use PP_OK_COMPLETIONPENDING instead of PP_OK since we've already sent our |
+ // reply above. |
+ return PP_OK_COMPLETIONPENDING; |
} |
fileapi::FileSystemURL PepperExternalFileRefBackend::GetFileSystemURL() const { |
return fileapi::FileSystemURL(); |
} |
-std::string PepperExternalFileRefBackend::GetFileSystemURLSpec() const { |
- return std::string(); |
-} |
- |
-base::FilePath PepperExternalFileRefBackend::GetExternalPath() const { |
- return path_; |
-} |
- |
int32_t PepperExternalFileRefBackend::CanRead() const { |
if (!ChildProcessSecurityPolicyImpl::GetInstance()-> |
CanReadFile(render_process_id_, path_)) { |