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

Unified Diff: components/data_use_measurement/core/data_use.cc

Issue 2507813003: Periodically remove old pending navigation entries.
Patch Set: Sync Created 4 years, 1 month 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
« no previous file with comments | « components/data_use_measurement/core/data_use.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_use_measurement/core/data_use.cc
diff --git a/components/data_use_measurement/core/data_use.cc b/components/data_use_measurement/core/data_use.cc
index 6a8ec7fe61be08addcb8e03107551990c7a93437..98f25b795c3592cf87d09ccfbf89eecfb93edc80 100644
--- a/components/data_use_measurement/core/data_use.cc
+++ b/components/data_use_measurement/core/data_use.cc
@@ -4,9 +4,14 @@
#include "components/data_use_measurement/core/data_use.h"
+#include "base/time/time.h"
+
namespace data_use_measurement {
-DataUse::DataUse() : total_bytes_sent_(0), total_bytes_received_(0) {}
+DataUse::DataUse()
+ : total_bytes_sent_(0),
+ total_bytes_received_(0),
+ start_time_(base::Time::Now()) {}
DataUse::~DataUse() {}
« no previous file with comments | « components/data_use_measurement/core/data_use.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698