mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Allow empty |mimeType| argument to GetDownloadHandler (issue #405).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1007 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -254,10 +254,6 @@ int CEF_CALLBACK request_handler_get_download_handler(
|
||||
DCHECK(browser);
|
||||
if (!browser)
|
||||
return 0;
|
||||
// Verify param: mimeType; type: string_byref_const
|
||||
DCHECK(mimeType);
|
||||
if (!mimeType)
|
||||
return 0;
|
||||
// Verify param: fileName; type: string_byref_const
|
||||
DCHECK(fileName);
|
||||
if (!fileName)
|
||||
@ -266,6 +262,7 @@ int CEF_CALLBACK request_handler_get_download_handler(
|
||||
DCHECK(handler);
|
||||
if (!handler)
|
||||
return 0;
|
||||
// Unverified params: mimeType
|
||||
|
||||
// Translate param: handler; type: refptr_same_byref
|
||||
CefRefPtr<CefDownloadHandler> handlerPtr;
|
||||
|
Reference in New Issue
Block a user