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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 2338563003: Record UMA for total data usage consumed by Chromium (Closed)
Patch Set: rebased, addressed gayane comment Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/net/chrome_network_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 6dd36c0cb099a74903ac99bd6ab1c0025f028a76..64af726ee1c15390bf59ef79f0975119ad624de6 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -364,11 +364,13 @@ void ChromeNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request,
#endif // defined(ENABLE_TASK_MANAGER)
ReportDataUsageStats(request, 0 /* tx_bytes */, bytes_received);
+ data_use_measurement_.OnNetworkBytesReceived(*request, bytes_received);
}
void ChromeNetworkDelegate::OnNetworkBytesSent(net::URLRequest* request,
int64_t bytes_sent) {
ReportDataUsageStats(request, bytes_sent, 0 /* rx_bytes */);
+ data_use_measurement_.OnNetworkBytesSent(*request, bytes_sent);
}
void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request,
« no previous file with comments | « no previous file | chrome/browser/net/chrome_network_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698