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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Support resourceLoadInfo (encodedDataLength) Created 4 years, 3 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: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 17da0e103519d484dec9df5c4376e17e589aa2f0..1ebefbee13b07fdc67037cc8084a530620415a3e 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -598,8 +598,7 @@ bool WebURLLoaderImpl::Context::OnReceivedRedirect(
: blink::WebURLRequest::SkipServiceWorker::All,
&new_request);
- client_->willFollowRedirect(loader_, new_request, response,
- info.encoded_data_length);
+ client_->willFollowRedirect(loader_, new_request, response);
request_ = new_request;
// Only follow the redirect if WebKit left the URL unmodified.
@@ -1037,6 +1036,7 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
info.npn_negotiated_protocol));
response->setHTTPLoadInfo(load_info);
}
+ response->addToEncodedDataLength(info.encoded_data_length);
const net::HttpResponseHeaders* headers = info.headers.get();
if (!headers)

Powered by Google App Engine
This is Rietveld 408576698