diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 23:55:30 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 23:55:30 +0000 |
commit | 3a2b2b5c2ab0d633b6ce072074acc4d40b07d00b (patch) | |
tree | a8081a74a6e46a48b5420f5020e4430e7f575997 /content/browser/download/download_resource_handler.cc | |
parent | dc893008253dc6c8c848ea2cf82d2967fab4a63f (diff) | |
download | chromium_src-3a2b2b5c2ab0d633b6ce072074acc4d40b07d00b.zip chromium_src-3a2b2b5c2ab0d633b6ce072074acc4d40b07d00b.tar.gz chromium_src-3a2b2b5c2ab0d633b6ce072074acc4d40b07d00b.tar.bz2 |
Minor cleanup in DownloadCreateInfo structure.
R=benjhayden@chromium.org
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11337033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_resource_handler.cc')
-rw-r--r-- | content/browser/download/download_resource_handler.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc index a579faf..29f7e8e 100644 --- a/content/browser/download/download_resource_handler.cc +++ b/content/browser/download/download_resource_handler.cc @@ -136,7 +136,7 @@ bool DownloadResourceHandler::OnResponseStarted( // Deleted in DownloadManager. scoped_ptr<DownloadCreateInfo> info(new DownloadCreateInfo( - base::Time::Now(), 0, content_length_, DownloadItem::IN_PROGRESS, + base::Time::Now(), content_length_, request_->net_log(), request_info->HasUserGesture(), request_info->transition_type())); @@ -152,9 +152,7 @@ bool DownloadResourceHandler::OnResponseStarted( info->url_chain = request_->url_chain(); info->referrer_url = GURL(request_->referrer()); info->start_time = base::Time::Now(); - info->received_bytes = save_info_->offset; info->total_bytes = content_length_; - info->state = DownloadItem::IN_PROGRESS; info->has_user_gesture = request_info->HasUserGesture(); info->content_disposition = content_disposition_; info->mime_type = response->head.mime_type; @@ -188,8 +186,6 @@ bool DownloadResourceHandler::OnResponseStarted( accept_ranges_ = ""; } - info->prompt_user_for_save_location = - save_info_->prompt_for_save_location && save_info_->file_path.empty(); info->save_info = save_info_.Pass(); BrowserThread::PostTask( |