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

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

Issue 455623003: stale-while-revalidate experimental implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support the bandwidth reduction proxy. Created 6 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: 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 d69e0eb1a4c4397d0fd21c01eb3284d807baaaf7..9e5bbc9e42e3a39d0c7daa6acddcf8c0c05ebd4d 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -570,9 +570,9 @@ void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request,
data_reduction_proxy::DataReductionProxyRequestType request_type =
data_reduction_proxy::GetDataReductionProxyRequestType(request);
- base::TimeDelta freshness_lifetime =
- request->response_info().headers->GetFreshnessLifetime(
- request->response_info().response_time);
+ base::TimeDelta freshness_lifetime;
+ request->response_info().headers->GetFreshnessLifetime(
+ request->response_info().response_time, &freshness_lifetime);
int64 adjusted_original_content_length =
data_reduction_proxy::GetAdjustedOriginalContentLength(
request_type, original_content_length,

Powered by Google App Engine
This is Rietveld 408576698