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

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

Issue 2865913002: Support for identifying traffic type in data use ascriber (Closed)
Patch Set: Addressed comments Created 3 years, 7 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: 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 c84da07f1faf1bd8eab55c7529b754583533330f..6faaa858e058346806b53ee7caa7dc758d6e228a 100644
--- a/components/data_use_measurement/core/data_use.cc
+++ b/components/data_use_measurement/core/data_use.cc
@@ -6,11 +6,15 @@
namespace data_use_measurement {
-DataUse::DataUse() : total_bytes_sent_(0), total_bytes_received_(0) {}
+DataUse::DataUse(TrafficType traffic_type)
+ : traffic_type_(traffic_type),
+ total_bytes_sent_(0),
+ total_bytes_received_(0) {}
-DataUse::DataUse(const DataUse& other) :
- total_bytes_sent_(other.total_bytes_sent_),
- total_bytes_received_(other.total_bytes_received_) {}
+DataUse::DataUse(const DataUse& other)
+ : traffic_type_(other.traffic_type_),
+ total_bytes_sent_(other.total_bytes_sent_),
+ total_bytes_received_(other.total_bytes_received_) {}
DataUse::~DataUse() {}

Powered by Google App Engine
This is Rietveld 408576698