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

Unified Diff: chrome/browser/download/download_item_model.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_item_model.cc
diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/download/download_item_model.cc
index f1ef10f5bcfbf2dc4d54c27888feb39e1a25f73e..7f74d0064663673c0e088ea727b4cb85b1b814b7 100644
--- a/chrome/browser/download/download_item_model.cc
+++ b/chrome/browser/download/download_item_model.cc
@@ -533,6 +533,7 @@ bool DownloadItemModel::ShouldRemoveFromShelfWhenComplete() const {
// Interrupted or cancelled downloads should remain on the shelf.
return false;
+ case DownloadItem::REMOVED:
Dan Beam 2014/11/13 02:51:16 not really sure what to do here...
case DownloadItem::MAX_DOWNLOAD_STATE:
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698