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

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

Issue 7793003: Revert 98656 - Make a new integer field in sql::MetaTable (a per-profile db) containing a counter... (Closed) Base URL: svn://svn.chromium.org/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
Index: content/browser/download/save_package.cc
===================================================================
--- content/browser/download/save_package.cc (revision 98659)
+++ content/browser/download/save_package.cc (working copy)
@@ -263,12 +263,15 @@
return false;
}
+ ResourceDispatcherHost* rdh =
+ content::GetContentClient()->browser()->GetResourceDispatcherHost();
+
// Create the download item, and add ourself as an observer.
download_ = new DownloadItem(download_manager_,
saved_main_file_path_,
page_url_,
browser_context->IsOffTheRecord(),
- download_manager_->GetNextId());
+ rdh->download_file_manager()->GetNextId());
download_->AddObserver(this);
// Transfer ownership to the download manager.
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/renderer_host/buffered_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698