diff options
Diffstat (limited to 'ppapi/proxy/ppb_file_chooser_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_file_chooser_proxy.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_file_chooser_proxy.cc b/ppapi/proxy/ppb_file_chooser_proxy.cc index 73f7a6a..c74ba4f 100644 --- a/ppapi/proxy/ppb_file_chooser_proxy.cc +++ b/ppapi/proxy/ppb_file_chooser_proxy.cc @@ -83,6 +83,9 @@ PPB_FileChooser_API* FileChooser::AsPPB_FileChooser_API() { } int32_t FileChooser::Show(const PP_CompletionCallback& callback) { + if (!callback.func) + return PP_ERROR_BLOCKS_MAIN_THREAD; + if (current_show_callback_.func) return PP_ERROR_INPROGRESS; // Can't show more than once. |