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

Unified Diff: chrome/browser/download/download_path_reservation_tracker.cc

Issue 722953002: downloads: add the ability to undo download removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops Created 6 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: chrome/browser/download/download_path_reservation_tracker.cc
diff --git a/chrome/browser/download/download_path_reservation_tracker.cc b/chrome/browser/download/download_path_reservation_tracker.cc
index 8ced0eeecf6a9ded4076e6a5d80a36ab2426bcef..1b0476941f53d1bbd474483809e359773e21aba1 100644
--- a/chrome/browser/download/download_path_reservation_tracker.cc
+++ b/chrome/browser/download/download_path_reservation_tracker.cc
@@ -326,6 +326,10 @@ void DownloadItemObserver::OnDownloadUpdated(DownloadItem* download) {
delete this;
break;
+ case DownloadItem::REMOVED:
+ // This is handled later by Remove().
Dan Beam 2014/11/13 02:51:16 should we change the state in the downloads databa
+ break;
+
case DownloadItem::MAX_DOWNLOAD_STATE:
// Compiler appeasement.
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698