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:
Marshall Greenblatt
2013-01-17 18:46:41 +00:00
parent e91039b864
commit 53d8a95c98
3 changed files with 3 additions and 9 deletions

View File

@ -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;