| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index 081d917bf8b7a4ece015d84fa547b9c340aefc14..2aaa3bec6b342f9e99ea7525a11fed06d65535b5 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -774,7 +774,9 @@ void ResourceDispatcherHostImpl::DidReceiveRedirect(
|
| info->GetWebContentsGetterForRequest(), std::move(detail));
|
| }
|
|
|
| -void ResourceDispatcherHostImpl::DidReceiveResponse(ResourceLoader* loader) {
|
| +void ResourceDispatcherHostImpl::DidReceiveResponse(
|
| + ResourceLoader* loader,
|
| + ResourceResponse* response) {
|
| ResourceRequestInfoImpl* info = loader->GetRequestInfo();
|
| net::URLRequest* request = loader->request();
|
| if (request->was_fetched_via_proxy() &&
|
| @@ -792,9 +794,8 @@ void ResourceDispatcherHostImpl::DidReceiveResponse(ResourceLoader* loader) {
|
|
|
| ProcessRequestForLinkHeaders(request);
|
|
|
| - int render_process_id, render_frame_host;
|
| - if (!info->GetAssociatedRenderFrame(&render_process_id, &render_frame_host))
|
| - return;
|
| + if (delegate_)
|
| + delegate_->OnResponseStarted(request, info->GetContext(), response);
|
|
|
| // Don't notify WebContents observers for requests known to be
|
| // downloads; they aren't really associated with the Webcontents.
|
|
|