Fix Mac compile error.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@187 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-02-16 03:19:07 +00:00
parent 163f8d6db9
commit 42846e6e31
1 changed files with 3 additions and 3 deletions

View File

@ -202,11 +202,11 @@ class RequestProxy : public net::URLRequest::Delegate,
if (allow_download && if (allow_download &&
webkit_glue::ShouldDownload(content_disposition, info.mime_type)) { webkit_glue::ShouldDownload(content_disposition, info.mime_type)) {
FilePath path(net::GetSuggestedFilename(url, content_disposition, string16 filename = net::GetSuggestedFilename(url,
info.charset, ASCIIToUTF16("download"))); content_disposition, info.charset, ASCIIToUTF16("download"));
CefRefPtr<CefDownloadHandler> dl_handler; CefRefPtr<CefDownloadHandler> dl_handler;
if (handler->HandleDownloadResponse(browser_, info.mime_type, if (handler->HandleDownloadResponse(browser_, info.mime_type,
path.value(), info.content_length, dl_handler) == filename, info.content_length, dl_handler) ==
RV_CONTINUE) { RV_CONTINUE) {
download_handler_ = dl_handler; download_handler_ = dl_handler;
} }