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

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

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: uma 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 9ffc50466df917a0a26b78f70db54c623fe6be9c..2ac8dc1a548b5a2787276bd55c49ded6dd4da1f7 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1120,9 +1120,10 @@ void HistoryBackend::CleanUpInProgressEntries() {
// Update a particular download entry.
void HistoryBackend::UpdateDownload(int64 received_bytes,
int32 state,
+ const base::Time& end_time,
int64 db_handle) {
if (db_.get())
- db_->UpdateDownload(received_bytes, state, db_handle);
+ db_->UpdateDownload(received_bytes, state, end_time, db_handle);
}
// Update the path of a particular download entry.
@@ -1156,6 +1157,11 @@ void HistoryBackend::RemoveDownloadsBetween(const Time remove_begin,
db_->RemoveDownloadsBetween(remove_begin, remove_end);
}
+void HistoryBackend::MarkDownloadOpened(int64 db_handle) {
+ if (db_.get())
+ db_->MarkDownloadOpened(db_handle);
+}
+
void HistoryBackend::QueryHistory(scoped_refptr<QueryHistoryRequest> request,
const string16& text_query,
const QueryOptions& options) {

Powered by Google App Engine
This is Rietveld 408576698