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

Unified Diff: content/browser/download/download_create_info.cc

Issue 148133007: [Downloads] Always call DM::StartDownload() for explicit downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typos Created 4 years, 10 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/browser/download/download_create_info.h ('k') | content/browser/download/download_file_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_create_info.cc
diff --git a/content/browser/download/download_create_info.cc b/content/browser/download/download_create_info.cc
index c09d713aa9705271d9340d281e46b3c9151953f3..89aeb98c0965c58ad19b93fc3c72a296e8e78a4f 100644
--- a/content/browser/download/download_create_info.cc
+++ b/content/browser/download/download_create_info.cc
@@ -5,7 +5,6 @@
#include "content/browser/download/download_create_info.h"
#include <string>
-#include <utility>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
@@ -13,20 +12,19 @@
namespace content {
DownloadCreateInfo::DownloadCreateInfo(const base::Time& start_time,
- int64_t total_bytes,
const net::BoundNetLog& bound_net_log,
scoped_ptr<DownloadSaveInfo> save_info)
- : start_time(start_time),
- total_bytes(total_bytes),
- download_id(DownloadItem::kInvalidId),
+ : download_id(DownloadItem::kInvalidId),
+ start_time(start_time),
+ total_bytes(0),
has_user_gesture(false),
transition_type(ui::PAGE_TRANSITION_LINK),
+ result(DOWNLOAD_INTERRUPT_REASON_NONE),
save_info(std::move(save_info)),
request_bound_net_log(bound_net_log) {}
DownloadCreateInfo::DownloadCreateInfo()
: DownloadCreateInfo(base::Time(),
- 0,
net::BoundNetLog(),
make_scoped_ptr(new DownloadSaveInfo)) {}
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_file_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698