Commit 4523b33b authored by rajendrant's avatar rajendrant Committed by Commit Bot

Populate before_will_process_response_received earlier to fix crash

Bug: 936999
Change-Id: Ib67c739cfc862c942489fe9213abb7db410b100c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576119Reviewed-by: default avatarEric Roman <eroman@chromium.org>
Commit-Queue: rajendrant <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652696}
parent f090ed9c
......@@ -76,6 +76,7 @@ void DataReductionProxyURLLoaderThrottle::BeforeWillProcessResponse(
const GURL& response_url,
const network::ResourceResponseHead& response_head,
bool* defer) {
before_will_process_response_received_ = true;
if (response_head.was_fetched_via_cache)
return;
......@@ -89,7 +90,6 @@ void DataReductionProxyURLLoaderThrottle::BeforeWillProcessResponse(
if (params::IsWarmupURL(response_url))
return;
before_will_process_response_received_ = true;
MaybeRetry(proxy_server, response_head.headers.get(), net::OK, defer);
RecordQuicProxyStatus(proxy_server);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment