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

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

Issue 2453633006: [downloads] Move platform specific code out of DownloadTargetDeterminer. (Closed)
Patch Set: . Created 4 years, 2 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
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..139992e8949de9436e6839f6479a825bdf78fb88 100644
--- a/content/shell/browser/shell_download_manager_delegate.cc
+++ b/content/shell/browser/shell_download_manager_delegate.cc
@@ -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(

Powered by Google App Engine
This is Rietveld 408576698