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

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

Issue 7847027: DownloadId (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge, move DM Shutdown to ~OTRProfileImpl Created 9 years, 3 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/history/history_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index dc01beb88a2e4939ada25516440ffda395dcd923..39c1b46473cb3a291895fcbfaf5976f381f1546b 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1084,6 +1084,17 @@ void HistoryBackend::GetMostRecentKeywordSearchTerms(
// Downloads -------------------------------------------------------------------
+void HistoryBackend::GetNextDownloadId(
+ scoped_refptr<DownloadNextIdRequest> request) {
+ if (request->canceled()) return;
+ if (db_.get()) {
+ request->value = db_->next_download_id();
+ } else {
+ request->value = 0;
+ }
+ request->ForwardResult(DownloadNextIdRequest::TupleType(request->value));
+}
+
// Get all the download entries from the database.
void HistoryBackend::QueryDownloads(
scoped_refptr<DownloadQueryRequest> request) {

Powered by Google App Engine
This is Rietveld 408576698