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

Unified Diff: content/shell/shell_download_manager_delegate.cc

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r168573 Created 8 years, 1 month 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/shell/shell_download_manager_delegate.cc
diff --git a/content/shell/shell_download_manager_delegate.cc b/content/shell/shell_download_manager_delegate.cc
index 544ad952820fafeba574e19689f86d86938feedb..3c41bcbc74989d883bbcd03397eac5ca0a67253f 100644
--- a/content/shell/shell_download_manager_delegate.cc
+++ b/content/shell/shell_download_manager_delegate.cc
@@ -29,8 +29,7 @@ namespace content {
ShellDownloadManagerDelegate::ShellDownloadManagerDelegate()
: download_manager_(NULL),
- suppress_prompting_(false),
- last_download_db_handle_(DownloadItem::kUninitializedHandle) {
+ suppress_prompting_(false) {
// Balanced in Shutdown();
AddRef();
}
@@ -181,12 +180,6 @@ void ShellDownloadManagerDelegate::ChooseDownloadPath(
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result);
}
-void ShellDownloadManagerDelegate::AddItemToPersistentStore(
- DownloadItem* item) {
- download_manager_->OnItemAddedToPersistentStore(
- item->GetId(), --last_download_db_handle_);
-}
-
void ShellDownloadManagerDelegate::SetDownloadBehaviorForTesting(
const FilePath& default_download_path) {
default_download_path_ = default_download_path;

Powered by Google App Engine
This is Rietveld 408576698