fix: notify request context shutdown on IO before cleanup (#14058)

This commit is contained in:
Robo 2018-08-15 02:37:53 +05:30 committed by Shelley Vohr
parent 8c21762bee
commit 9989195f19
22 changed files with 504 additions and 387 deletions

View file

@ -472,7 +472,7 @@ void InspectableWebContentsImpl::LoadNetworkResource(
net::URLFetcher* fetcher =
(net::URLFetcher::Create(gurl, net::URLFetcher::GET, this)).release();
pending_requests_[fetcher] = callback;
fetcher->SetRequestContext(browser_context->url_request_context_getter());
fetcher->SetRequestContext(browser_context->GetRequestContext());
fetcher->SetExtraRequestHeaders(headers);
fetcher->SaveResponseWithWriter(
std::unique_ptr<net::URLFetcherResponseWriter>(