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

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

Issue 274453011: Revert of Collect data reduction proxy UMA on all platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « build/common.gypi ('k') | components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h » ('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 1cab93d7654e4ff593935ab698e2120572b86330..b580265ad493e6a2102dcc5d5bac279574a9ac03 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -275,6 +275,7 @@
int64 received_content_length,
int64 original_content_length,
const base::TimeDelta& freshness_lifetime) {
+#if defined(OS_ANDROID)
// Add the current resource to these histograms only when a valid
// X-Original-Content-Length header is present.
if (original_content_length >= 0) {
@@ -312,6 +313,7 @@
return;
UMA_HISTOGRAM_COUNTS("Net.HttpContentLengthCacheable24Hours",
received_content_length);
+#endif // defined(OS_ANDROID)
}
#if defined(OS_ANDROID)
« no previous file with comments | « build/common.gypi ('k') | components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698