| Index: content/browser/loader/async_revalidation_manager.cc
|
| diff --git a/content/browser/loader/async_revalidation_manager.cc b/content/browser/loader/async_revalidation_manager.cc
|
| index abdf659fd228059833fa8c422dedf0099ee207a0..bf03189141909e6dafc1db09de712b8c9ebff0e6 100644
|
| --- a/content/browser/loader/async_revalidation_manager.cc
|
| +++ b/content/browser/loader/async_revalidation_manager.cc
|
| @@ -58,7 +58,8 @@ void AsyncRevalidationManager::BeginAsyncRevalidation(
|
| const ResourceRequestInfoImpl* info =
|
| ResourceRequestInfoImpl::ForRequest(&for_request);
|
| DCHECK(info);
|
| - if (!info->filter()) {
|
| + if (!info->requester_info().IsRenderer() ||
|
| + !info->requester_info().filter()) {
|
| // The child has gone away and we can no longer get ResourceContext and
|
| // URLRequestContext to perform async revalidation.
|
| // This can happen in the following cases, ordered from bad to not-so-bad
|
| @@ -89,8 +90,8 @@ void AsyncRevalidationManager::BeginAsyncRevalidation(
|
|
|
| // The embedder of //content needs to ensure that the URLRequestContext object
|
| // remains valid until after the ResourceContext object is destroyed.
|
| - info->filter()->GetContexts(info->GetResourceType(), &resource_context,
|
| - &request_context);
|
| + info->requester_info().GetContexts(info->GetResourceType(), &resource_context,
|
| + &request_context);
|
|
|
| AsyncRevalidationKey async_revalidation_key(
|
| resource_context, request_context->http_transaction_factory()->GetCache(),
|
|
|