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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc

Issue 2242353003: Record partial savings for incomplete responses through the DRP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed ScaleContentLength to ScaleByteCountByRatio Created 4 years, 4 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_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
index d8e632de59cf47cc0e36059c93c1e3df6b2ee781..bdb0d476a71afd95298b865bef4012cede5b5a08 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
@@ -65,17 +65,4 @@ DataReductionProxyRequestType GetDataReductionProxyRequestType(
return UNKNOWN_TYPE;
}
-int64_t GetAdjustedOriginalContentLength(
- DataReductionProxyRequestType request_type,
- int64_t original_content_length,
- int64_t received_content_length) {
- // Since there was no indication of the original content length, presume
- // it is no different from the number of bytes read.
- if (original_content_length == -1 ||
- request_type != VIA_DATA_REDUCTION_PROXY) {
- return received_content_length;
- }
- return original_content_length;
-}
-
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698