Allow an empty |download_path| argument to CefBeforeDownloadCallback::Continue (issue #516).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@716 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-06-28 17:46:40 +00:00
parent 421001ba9d
commit 0c81037621
3 changed files with 3 additions and 9 deletions

View File

@ -55,7 +55,7 @@ class CefBeforeDownloadCallback : public virtual CefBase {
// suggested name and the default temp directory. Set |show_dialog| to true
// if you do wish to show the default "Save As" dialog.
///
/*--cef(capi_name=cont)--*/
/*--cef(capi_name=cont,optional_param=download_path)--*/
virtual void Continue(const CefString& download_path, bool show_dialog) =0;
};

View File

@ -23,10 +23,7 @@ void CEF_CALLBACK before_download_callback_cont(
DCHECK(self);
if (!self)
return;
// Verify param: download_path; type: string_byref_const
DCHECK(download_path);
if (!download_path)
return;
// Unverified params: download_path
// Execute
CefBeforeDownloadCallbackCppToC::Get(self)->Continue(

View File

@ -22,10 +22,7 @@ void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: download_path; type: string_byref_const
DCHECK(!download_path.empty());
if (download_path.empty())
return;
// Unverified params: download_path
// Execute
struct_->cont(struct_,