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

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: " 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));
Randy Smith (Not in Mondays) 2011/07/28 21:03:16 This seems like it'll leave an uninitialized value
benjhayden 2011/08/03 17:44:46 Done. For this cl, while DownloadManager says nex
Randy Smith (Not in Mondays) 2011/08/03 21:10:29 Yes--no collisions to avoid. There may be circums
benjhayden 2011/08/04 17:15:00 Done.
+}
+
// Get all the download entries from the database.
void HistoryBackend::QueryDownloads(
scoped_refptr<DownloadQueryRequest> request) {

Powered by Google App Engine
This is Rietveld 408576698