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

Unified Diff: components/data_use_measurement/core/data_use_measurement.h

Issue 2851923002: Fix overflow in user traffic content type histogram (Closed)
Patch Set: Created 3 years, 8 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_measurement.h
diff --git a/components/data_use_measurement/core/data_use_measurement.h b/components/data_use_measurement/core/data_use_measurement.h
index 931d6f1033d3a1fc50652411e3e6dd8e864d807f..32d887cfa4d349f738886fcd84fd2f721753a88e 100644
--- a/components/data_use_measurement/core/data_use_measurement.h
+++ b/components/data_use_measurement/core/data_use_measurement.h
@@ -181,6 +181,10 @@ class DataUseMeasurement {
int64_t rx_bytes_os_;
int64_t tx_bytes_os_;
+ // User traffic data use by content type is logged in 1KB increments. The
+ // remaining bytes are saved in this array until logged next time.
+ int64_t user_traffic_content_type_bytes_[DataUseUserData::TYPE_MAX];
+
// Number of bytes received and sent by Chromium as reported by the network
// delegate since the operating system was last queried for traffic
// statistics.

Powered by Google App Engine
This is Rietveld 408576698