Post-commit fixes for "stale-while-revalidate..."
I accidentally committed http://crrev.com/455623003 before getting LGTM from
mmenke@. This CL is for additional fixes that he requested.
BUG=348877
TEST=net_unittests
Review URL: https://codereview.chromium.org/665023002
Cr-Commit-Position: refs/heads/master@{#302056}
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index fd9afe6..a4c911f 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -572,10 +572,8 @@
data_reduction_proxy::GetDataReductionProxyRequestType(request);
base::TimeDelta freshness_lifetime =
- request->response_info()
- .headers->GetFreshnessLifetimes(
- request->response_info().response_time)
- .fresh;
+ request->response_info().headers->GetFreshnessLifetimes(
+ request->response_info().response_time).freshness;
int64 adjusted_original_content_length =
data_reduction_proxy::GetAdjustedOriginalContentLength(
request_type, original_content_length,