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

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

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: sql::MetaTable.next_download_id, DownloadId, DownloadManager::GetNextId() Created 9 years, 5 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 0da92cc271b117c70c16d1173e516c31b6de8071..70ee22e47975d193a15feb8e5822e75b693667e0 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1076,6 +1076,15 @@ void HistoryBackend::GetMostRecentKeywordSearchTerms(
// Downloads -------------------------------------------------------------------
+void HistoryBackend::GetNextDownloadId(
+ scoped_refptr<DownloadNextIdRequest> request) {
+ if (request->canceled()) return;
+ if (db_.get()) {
+ request->value = db_->next_download_id();
+ }
+ 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