provide a default file name for downloads
This commit is contained in:
parent
d426d4ad90
commit
94faaf7d58
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ std::string DownloadItem::GetFilename() const {
|
|||
std::string(),
|
||||
download_item_->GetSuggestedFilename(),
|
||||
GetMimeType(),
|
||||
std::string()).LossyDisplayName());
|
||||
"download").LossyDisplayName());
|
||||
}
|
||||
|
||||
std::string DownloadItem::GetContentDisposition() const {
|
||||
|
|
|
@ -60,7 +60,7 @@ void AtomDownloadManagerDelegate::CreateDownloadPath(
|
|||
std::string(),
|
||||
suggested_filename,
|
||||
mime_type,
|
||||
std::string());
|
||||
"download");
|
||||
|
||||
if (!base::PathExists(default_download_path))
|
||||
base::CreateDirectory(default_download_path);
|
||||
|
|
Loading…
Reference in a new issue