| Index: chrome/browser/ui/cocoa/tab_contents/web_drag_source.mm
|
| ===================================================================
|
| --- chrome/browser/ui/cocoa/tab_contents/web_drag_source.mm (revision 85826)
|
| +++ chrome/browser/ui/cocoa/tab_contents/web_drag_source.mm (working copy)
|
| @@ -69,7 +69,7 @@
|
| if (file_name.empty()) {
|
| // Retrieve the name from the URL.
|
| string16 suggested_filename =
|
| - net::GetSuggestedFilename(drop_data.url, "", "", string16());
|
| + net::GetSuggestedFilename(drop_data.url, "", "", "", string16());
|
| file_name = FilePathFromFilename(suggested_filename);
|
| }
|
|
|
| @@ -402,13 +402,11 @@
|
| &mimeType,
|
| &fileName,
|
| &downloadURL_)) {
|
| - std::string contentDisposition =
|
| - "attachment; filename=" + fileName.value();
|
| - download_util::GenerateFileName(downloadURL_,
|
| - contentDisposition,
|
| - std::string(),
|
| - UTF16ToUTF8(mimeType),
|
| - &downloadFileName_);
|
| + download_util::GenerateFileNameFromSuggestedName(
|
| + downloadURL_,
|
| + fileName.value(),
|
| + UTF16ToUTF8(mimeType),
|
| + &downloadFileName_);
|
| fileExtension = SysUTF8ToNSString(downloadFileName_.Extension());
|
| }
|
| }
|
|
|