From 3a2b2b5c2ab0d633b6ce072074acc4d40b07d00b Mon Sep 17 00:00:00 2001 From: "rdsmith@chromium.org" Date: Thu, 1 Nov 2012 23:55:30 +0000 Subject: 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 --- content/browser/download/download_resource_handler.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'content/browser/download/download_resource_handler.cc') 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 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( -- cgit v1.1