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

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: @r158560 Created 8 years, 3 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/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 8290ea2d2f6f9f3152056fcebc71f046058f8bd4..bbc299db44b22b50d1f5ab70da75c3c60745d1d5 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();
}
@@ -182,12 +181,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