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

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

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_item.cc ('k') | content/browser/download/download_state_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_resource_handler.cc
===================================================================
--- content/browser/download/download_resource_handler.cc (revision 98485)
+++ content/browser/download/download_resource_handler.cc (working copy)
@@ -80,15 +80,12 @@
download_id_ = download_file_manager_->GetNextId();
// Deleted in DownloadManager.
- DownloadCreateInfo* info = new DownloadCreateInfo;
+ DownloadCreateInfo* info = new DownloadCreateInfo(FilePath(), GURL(),
+ base::Time::Now(), 0, content_length_, DownloadItem::IN_PROGRESS,
+ download_id_, request_info->has_user_gesture(),
+ request_info->transition_type());
info->url_chain = request_->url_chain();
info->referrer_url = GURL(request_->referrer());
- info->start_time = base::Time::Now();
- info->received_bytes = 0;
- info->total_bytes = content_length_;
- info->state = DownloadItem::IN_PROGRESS;
- info->download_id = download_id_;
- info->has_user_gesture = request_info->has_user_gesture();
info->request_handle = DownloadRequestHandle(rdh_,
global_id_.child_id,
render_view_id_,
« no previous file with comments | « content/browser/download/download_item.cc ('k') | content/browser/download/download_state_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698