| Index: content/browser/appcache/appcache_subresource_url_factory.cc
|
| diff --git a/content/browser/appcache/appcache_subresource_url_factory.cc b/content/browser/appcache/appcache_subresource_url_factory.cc
|
| index 62661651caa7c9372ecf07778ad393150c588c3a..4b6f9fd36b56372749525dd7296dfdc9fb592209 100644
|
| --- a/content/browser/appcache/appcache_subresource_url_factory.cc
|
| +++ b/content/browser/appcache/appcache_subresource_url_factory.cc
|
| @@ -63,17 +63,17 @@
|
|
|
| // If the host is invalid, it means that the renderer has probably died.
|
| // (Frame has navigated elsewhere?)
|
| - if (!appcache_host_.get()) {
|
| - NotifyError(std::move(client), net::ERR_FAILED);
|
| + if (!appcache_host_.get())
|
| return;
|
| - }
|
|
|
| std::unique_ptr<AppCacheRequestHandler> handler =
|
| appcache_host_->CreateRequestHandler(
|
| AppCacheURLLoaderRequest::Create(request), request.resource_type,
|
| request.should_reset_appcache);
|
| if (!handler) {
|
| - NotifyError(std::move(client), net::ERR_FAILED);
|
| + ResourceRequestCompletionStatus request_result;
|
| + request_result.error_code = net::ERR_FAILED;
|
| + client->OnComplete(request_result);
|
| return;
|
| }
|
|
|
| @@ -109,12 +109,4 @@
|
| base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
|
| }
|
|
|
| -void AppCacheSubresourceURLFactory::NotifyError(
|
| - mojom::URLLoaderClientPtr client,
|
| - int error_code) {
|
| - ResourceRequestCompletionStatus request_result;
|
| - request_result.error_code = error_code;
|
| - client->OnComplete(request_result);
|
| -}
|
| -
|
| } // namespace content
|
|
|