Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2093)

Unified Diff: content/shell/browser/shell_download_manager_delegate.cc

Issue 1513413002: Enable "Hide Extension" option when "Save Link As" on the Mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | ui/shell_dialogs/select_file_dialog_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_download_manager_delegate.cc
diff --git a/content/shell/browser/shell_download_manager_delegate.cc b/content/shell/browser/shell_download_manager_delegate.cc
index da4978ee419b25a575927c51f776f27cbc8e0e3b..3a68c207831d723a263a4c9875134f33ece7dc56 100644
--- a/content/shell/browser/shell_download_manager_delegate.cc
+++ b/content/shell/browser/shell_download_manager_delegate.cc
@@ -71,7 +71,8 @@ bool ShellDownloadManagerDelegate::DetermineDownloadTarget(
callback.Run(download->GetForcedFilePath(),
DownloadItem::TARGET_DISPOSITION_OVERWRITE,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- download->GetForcedFilePath());
+ download->GetForcedFilePath(),
+ false);
return true;
}
@@ -139,7 +140,8 @@ void ShellDownloadManagerDelegate::OnDownloadPathGenerated(
// Testing exit.
callback.Run(suggested_path, DownloadItem::TARGET_DISPOSITION_OVERWRITE,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- suggested_path.AddExtension(FILE_PATH_LITERAL(".crdownload")));
+ suggested_path.AddExtension(FILE_PATH_LITERAL(".crdownload")),
+ false);
return;
}
@@ -183,7 +185,7 @@ void ShellDownloadManagerDelegate::ChooseDownloadPath(
#endif
callback.Run(result, DownloadItem::TARGET_DISPOSITION_PROMPT,
- DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result);
+ DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result, false);
}
void ShellDownloadManagerDelegate::SetDownloadBehaviorForTesting(
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | ui/shell_dialogs/select_file_dialog_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698