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

Unified Diff: chromecast/browser/cast_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
Index: chromecast/browser/cast_download_manager_delegate.cc
diff --git a/chromecast/browser/cast_download_manager_delegate.cc b/chromecast/browser/cast_download_manager_delegate.cc
index 2c795ab3ffb83c102e065754a711fd2d26f98838..091b7c4ba24ed0d510646111bec7e45dd198fa2c 100644
--- a/chromecast/browser/cast_download_manager_delegate.cc
+++ b/chromecast/browser/cast_download_manager_delegate.cc
@@ -9,6 +9,7 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "content/public/browser/download_danger_type.h"
+#include "content/public/browser/download_interrupt_reasons.h"
#include "content/public/browser/download_item.h"
namespace chromecast {
@@ -31,11 +32,9 @@ bool CastDownloadManagerDelegate::DetermineDownloadTarget(
// Running the DownloadTargetCallback with an empty FilePath signals
// that the download should be cancelled.
base::FilePath empty;
- callback.Run(
- empty,
- content::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
- content::DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT,
- empty);
+ callback.Run(empty, content::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
+ content::DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT, empty,
+ content::DOWNLOAD_INTERRUPT_REASON_NONE);
return true;
}
@@ -57,4 +56,4 @@ bool CastDownloadManagerDelegate::ShouldOpenDownload(
}
} // namespace shell
-} // namespace chromecast
+} // namespace chromecast
« no previous file with comments | « chrome/browser/lifetime/browser_close_manager_browsertest.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698