From 33d73079fae63ad533660d454d863f1925d331d2 Mon Sep 17 00:00:00 2001 From: "bbudge@google.com" Date: Mon, 17 Oct 2011 20:17:44 +0000 Subject: Fix crash in PPB_FileChooser_Dev proxy. BUG=100419 TEST=manual Review URL: http://codereview.chromium.org/8298017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105891 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/ppb_file_chooser_proxy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ppapi') diff --git a/ppapi/proxy/ppb_file_chooser_proxy.cc b/ppapi/proxy/ppb_file_chooser_proxy.cc index 261f9f3..1c7907c 100644 --- a/ppapi/proxy/ppb_file_chooser_proxy.cc +++ b/ppapi/proxy/ppb_file_chooser_proxy.cc @@ -125,7 +125,7 @@ int32_t FileChooser::Show(bool require_user_gesture, INTERFACE_ID_PPB_FILE_CHOOSER, host_resource(), save_as, - suggested_file_name, + suggested_file_name ? suggested_file_name : "", require_user_gesture)); return PP_OK_COMPLETIONPENDING; } @@ -191,7 +191,7 @@ PP_Resource PPB_FileChooser_Proxy::CreateProxyResource( dispatcher->Send(new PpapiHostMsg_PPBFileChooser_Create( INTERFACE_ID_PPB_FILE_CHOOSER, instance, mode, - accept_mime_types, + accept_mime_types ? accept_mime_types : "", &result)); if (result.is_null()) -- cgit v1.1