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

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

Issue 2947973002: Support moving pending requests from one DataUseRecorder to another (Closed)
Patch Set: Addressed comments Created 3 years, 6 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 9c34e8a8ce2faf750ca0624e44df7db2576a1699..e8663430df6401d9dfe00495cd4cbbc846dd082c 100644
--- a/components/data_use_measurement/core/data_use.cc
+++ b/components/data_use_measurement/core/data_use.cc
@@ -18,13 +18,4 @@ void DataUse::IncrementTotalBytes(int64_t bytes_received, int64_t bytes_sent) {
total_bytes_sent_ += bytes_sent;
tbansal1 2017/06/26 21:44:28 DCHECK_LE(0, total_bytes_received_); DCHECK_LE(0,
Raj 2017/06/27 02:30:04 Done
}
-void DataUse::MergeFrom(const DataUse& other) {
- // Traffic type need not be same while merging. One of the data use created
- // when mainframe is created could have UNKNOWN traffic type, and later merged
- // with the data use created for its mainframe request which could be
- // USER_TRAFFIC.
- total_bytes_sent_ += other.total_bytes_sent_;
- total_bytes_received_ += other.total_bytes_received_;
-}
-
} // namespace data_use_measurement

Powered by Google App Engine
This is Rietveld 408576698