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

Unified Diff: chrome/browser/history/download_database.cc

Issue 722953002: downloads: add the ability to undo download removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment 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/history/download_database.cc
diff --git a/chrome/browser/history/download_database.cc b/chrome/browser/history/download_database.cc
index 9461e4523f8689253c107e0482f42d289305f7d7..9dee6edb941b5d3c41a8d5f2c31b15f081342e1a 100644
--- a/chrome/browser/history/download_database.cc
+++ b/chrome/browser/history/download_database.cc
@@ -95,6 +95,7 @@ int DownloadDatabase::StateToInt(DownloadItem::DownloadState state) {
case DownloadItem::COMPLETE: return DownloadDatabase::kStateComplete;
case DownloadItem::CANCELLED: return DownloadDatabase::kStateCancelled;
case DownloadItem::INTERRUPTED: return DownloadDatabase::kStateInterrupted;
+ case DownloadItem::REMOVED:
benjhayden 2014/11/13 18:01:59 How do you ensure that this isn't reached?
case DownloadItem::MAX_DOWNLOAD_STATE:
NOTREACHED();
return DownloadDatabase::kStateInvalid;

Powered by Google App Engine
This is Rietveld 408576698