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

Unified Diff: chrome/browser/ui/webui/downloads_dom_handler.cc

Issue 10665049: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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: chrome/browser/ui/webui/downloads_dom_handler.cc
diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc
index 6b331f70a6e6854734f5e067ba568bb1766c349b..888315f188a2075eff2e42715164870e835ee787 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc
@@ -362,7 +362,6 @@ void DownloadsDOMHandler::ModelChanged(content::DownloadManager* manager) {
// We should never see anything that isn't already in the history.
DCHECK(*it);
- DCHECK((*it)->IsPersisted());
(*it)->AddObserver(this);
}
@@ -450,7 +449,6 @@ void DownloadsDOMHandler::HandleRemove(const ListValue* args) {
CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_REMOVE);
content::DownloadItem* file = GetDownloadByValue(args);
if (file) {
- DCHECK(file->IsPersisted());
file->Remove();
}
}

Powered by Google App Engine
This is Rietveld 408576698