Fix Mac compile error.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@187 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
163f8d6db9
commit
42846e6e31
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue