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

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: . 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 5dfb4921678ec9c88ea2f8089ab59b2293cf8903..70ca4c61b5d5901c2efb03faf038bd1a15fae327 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