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

Unified Diff: chrome/browser/download/save_package.cc

Issue 3029025: Download code cleanup: (Closed)
Patch Set: rebase'n'final Created 10 years, 5 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 | « chrome/browser/download/download_util.cc ('k') | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/save_package.cc
diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc
index 7be57c2c6238a1e2deed564a1adb1daa25f351df..3ec45b9d1b41d4bd85395364a838e0c02fe5f366 100644
--- a/chrome/browser/download/save_package.cc
+++ b/chrome/browser/download/save_package.cc
@@ -377,10 +377,9 @@ bool SavePackage::Init() {
request_context_getter_ = profile->GetRequestContext();
// Create the fake DownloadItem and display the view.
- download_ = new DownloadItem(1, saved_main_file_path_, 0, page_url_, GURL(),
- "", "", FilePath(), Time::Now(), 0, -1, -1, false, false,
- profile->IsOffTheRecord(), false, false);
- download_->set_manager(tab_contents_->profile()->GetDownloadManager());
+ download_ = new DownloadItem(tab_contents_->profile()->GetDownloadManager(),
+ saved_main_file_path_, page_url_,
+ profile->IsOffTheRecord());
tab_contents_->OnStartDownload(download_);
// Check save type and process the save page job.
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698