diff --git a/libcef/browser_resource_loader_bridge.cc b/libcef/browser_resource_loader_bridge.cc index f8b352b7b..6e75b8bfe 100644 --- a/libcef/browser_resource_loader_bridge.cc +++ b/libcef/browser_resource_loader_bridge.cc @@ -202,11 +202,11 @@ class RequestProxy : public net::URLRequest::Delegate, if (allow_download && webkit_glue::ShouldDownload(content_disposition, info.mime_type)) { - FilePath path(net::GetSuggestedFilename(url, content_disposition, - info.charset, ASCIIToUTF16("download"))); + string16 filename = net::GetSuggestedFilename(url, + content_disposition, info.charset, ASCIIToUTF16("download")); CefRefPtr dl_handler; if (handler->HandleDownloadResponse(browser_, info.mime_type, - path.value(), info.content_length, dl_handler) == + filename, info.content_length, dl_handler) == RV_CONTINUE) { download_handler_ = dl_handler; }