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

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

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge AGAIN 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
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc
index 5cb56df93540cf13eb6e30db2648349f3eeb2009..db6b4232c8555eb32f979c05ce403b9b3ea264e9 100644
--- a/content/browser/download/save_package.cc
+++ b/content/browser/download/save_package.cc
@@ -263,15 +263,12 @@ bool SavePackage::Init() {
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(),
- rdh->download_file_manager()->GetNextId());
+ download_manager_->GetNextId());
download_->AddObserver(this);
// Transfer ownership to the download manager.

Powered by Google App Engine
This is Rietveld 408576698