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) { |