diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppb_file_io_impl.cc')
-rw-r--r-- | webkit/plugins/ppapi/ppb_file_io_impl.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webkit/plugins/ppapi/ppb_file_io_impl.cc b/webkit/plugins/ppapi/ppb_file_io_impl.cc index faa0870..b074596 100644 --- a/webkit/plugins/ppapi/ppb_file_io_impl.cc +++ b/webkit/plugins/ppapi/ppb_file_io_impl.cc @@ -315,10 +315,8 @@ int32_t PPB_FileIO_Impl::CommonCallValidation(bool should_be_open, OperationType new_op, PP_CompletionCallback callback) { // Only asynchronous operation is supported. - if (!callback.func) { - NOTIMPLEMENTED(); - return PP_ERROR_BADARGUMENT; - } + if (!callback.func) + return PP_ERROR_BLOCKS_MAIN_THREAD; if (should_be_open) { if (file_ == base::kInvalidPlatformFileValue) |