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

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

Issue 2453633006: [downloads] Move platform specific code out of DownloadTargetDeterminer. (Closed)
Patch Set: . Created 3 years, 9 months 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') | no next file » | 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 cbe4a6577acdea19817013b35a4e688f7341a308..789b40c55dabc65801fa5f4e060305c41f3983c0 100644
--- a/content/shell/browser/shell_download_manager_delegate.cc
+++ b/content/shell/browser/shell_download_manager_delegate.cc
@@ -36,7 +36,7 @@ ShellDownloadManagerDelegate::ShellDownloadManagerDelegate()
suppress_prompting_(false),
weak_ptr_factory_(this) {}
-ShellDownloadManagerDelegate::~ShellDownloadManagerDelegate(){
+ShellDownloadManagerDelegate::~ShellDownloadManagerDelegate() {
if (download_manager_) {
DCHECK_EQ(static_cast<DownloadManagerDelegate*>(this),
download_manager_->GetDelegate());
@@ -73,7 +73,7 @@ bool ShellDownloadManagerDelegate::DetermineDownloadTarget(
callback.Run(download->GetForcedFilePath(),
DownloadItem::TARGET_DISPOSITION_OVERWRITE,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- download->GetForcedFilePath());
+ download->GetForcedFilePath(), DOWNLOAD_INTERRUPT_REASON_NONE);
return true;
}
@@ -141,7 +141,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")),
+ DOWNLOAD_INTERRUPT_REASON_NONE);
return;
}
@@ -185,7 +186,8 @@ void ShellDownloadManagerDelegate::ChooseDownloadPath(
#endif
callback.Run(result, DownloadItem::TARGET_DISPOSITION_PROMPT,
- DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result);
+ DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result,
+ DOWNLOAD_INTERRUPT_REASON_NONE);
}
void ShellDownloadManagerDelegate::SetDownloadBehaviorForTesting(
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698