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

Unified Diff: chrome/browser/history/history.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.cc
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc
index 6957e3a402fbf86d9f66abcde4eb2bf18753a260..5cdbad0849bc38c0b316f1ae1a7049f4e56a5272 100644
--- a/chrome/browser/history/history.cc
+++ b/chrome/browser/history/history.cc
@@ -543,9 +543,10 @@ void HistoryService::CleanUpInProgressEntries() {
// operation, so we don't need to be called back.
void HistoryService::UpdateDownload(int64 received_bytes,
int32 state,
+ const base::Time& end_time,
int64 db_handle) {
ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::UpdateDownload,
- received_bytes, state, db_handle);
+ received_bytes, state, end_time, db_handle);
}
void HistoryService::UpdateDownloadPath(const FilePath& path,
@@ -567,6 +568,11 @@ void HistoryService::RemoveDownloadsBetween(Time remove_begin,
remove_end);
}
+void HistoryService::MarkDownloadOpened(int64 db_handle) {
+ ScheduleAndForget(PRIORITY_NORMAL,
+ &HistoryBackend::MarkDownloadOpened, db_handle);
+}
+
HistoryService::Handle HistoryService::QueryHistory(
const string16& text_query,
const history::QueryOptions& options,

Powered by Google App Engine
This is Rietveld 408576698