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

Unified Diff: content/browser/download/download_persistent_store_info.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: fix windows auto_closed_ Created 9 years, 2 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: content/browser/download/download_persistent_store_info.cc
diff --git a/content/browser/download/download_persistent_store_info.cc b/content/browser/download/download_persistent_store_info.cc
index 8ca92b1f2e2325061e5510646b4ee1df8faa0557..a15f1b7e4518fb1d230c8fecff40abc848ec37b1 100644
--- a/content/browser/download/download_persistent_store_info.cc
+++ b/content/browser/download/download_persistent_store_info.cc
@@ -10,7 +10,8 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
: received_bytes(0),
total_bytes(0),
state(0),
- db_handle(0) {
+ db_handle(0),
+ opened(false) {
}
DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
@@ -18,18 +19,22 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
const GURL& url,
const GURL& referrer,
const base::Time& start,
+ const base::Time& end,
int64 received,
int64 total,
int32 download_state,
- int64 handle)
+ int64 handle,
+ bool download_opened)
: path(path),
url(url),
referrer_url(referrer),
start_time(start),
+ end_time(end),
received_bytes(received),
total_bytes(total),
state(download_state),
- db_handle(handle) {
+ db_handle(handle),
+ opened(download_opened) {
}
DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() {

Powered by Google App Engine
This is Rietveld 408576698