Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: ppapi/proxy/ppb_file_chooser_proxy.cc

Issue 8298017: Fix crash in PPB_FileChooser_Dev proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_file_chooser_proxy.cc
===================================================================
--- ppapi/proxy/ppb_file_chooser_proxy.cc (revision 105583)
+++ ppapi/proxy/ppb_file_chooser_proxy.cc (working copy)
@@ -125,7 +125,7 @@
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 @@
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())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698