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

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

Issue 154243006: Add GetExpirationTimes() to HttpResponseHeader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move a function body Created 4 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_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
index cbf79c38e874f14cf6d75a1dd84826462e67a478..818422bad64a7cc1880b7d616998a0060d33c0c6 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
@@ -293,8 +293,9 @@ void DataReductionProxyNetworkDelegate::RecordContentLength(
// Record content length histograms for the request.
base::TimeDelta freshness_lifetime =
request.response_headers()
- ->GetFreshnessLifetimes(request.response_info().response_time)
- .freshness;
+ ->GetExpirationTimes(request.response_info().request_time,
+ request.response_info().response_time)
+ .freshness_lifetime;
RecordContentLengthHistograms(
// |data_reduction_proxy_io_data_| can be NULL for Webview.

Powered by Google App Engine
This is Rietveld 408576698