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

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

Issue 7192016: chrome.experimental.downloads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: DownloadQuery, single DownloadMap Created 9 years, 6 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
« no previous file with comments | « chrome/browser/renderer_host/download_throttling_resource_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8b66dd4a17dde2ee202d91011cae6735b2f89c07..93976bb0263ac5720ca905c173223be45b272119 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc
@@ -143,7 +143,7 @@ void DownloadsDOMHandler::ModelChanged() {
// fixed.
// We should never see anything that isn't already in the history.
CHECK(*it);
- CHECK_NE(DownloadHistory::kUninitializedHandle, (*it)->db_handle());
+ CHECK_NE(DownloadHistory::kUninitializedHandle, (*it)->id());
(*it)->AddObserver(this);
}
@@ -211,7 +211,7 @@ void DownloadsDOMHandler::HandlePause(const ListValue* args) {
void DownloadsDOMHandler::HandleRemove(const ListValue* args) {
DownloadItem* file = GetDownloadByValue(args);
// TODO(rdsmith): Change to DCHECK when http://crbug.com/84508 is fixed.
- CHECK_NE(DownloadHistory::kUninitializedHandle, file->db_handle());
+ CHECK_NE(DownloadHistory::kUninitializedHandle, file->id());
if (file)
file->Remove();
}
« no previous file with comments | « chrome/browser/renderer_host/download_throttling_resource_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698