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

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: Rebase. Created 6 years, 2 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 ca6c04acd42e8495a74f3eb36808ec2a75fc3249..9b9c910db81998eaa76c32a97428d3a80298b849 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -570,8 +570,10 @@ void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request,
data_reduction_proxy::GetDataReductionProxyRequestType(request);
base::TimeDelta freshness_lifetime =
- request->response_info().headers->GetFreshnessLifetime(
- request->response_info().response_time);
+ request->response_info()
+ .headers->GetFreshnessLifetimes(
+ request->response_info().response_time)
mmenke 2014/10/09 14:29:58 nit: This should use 4-space indent.
+ .fresh;
mmenke 2014/10/09 14:29:58 nit: Think it's more consistent with prevailing s
int64 adjusted_original_content_length =
data_reduction_proxy::GetAdjustedOriginalContentLength(
request_type, original_content_length,

Powered by Google App Engine
This is Rietveld 408576698