| Index: net/url_request/url_request_file_job.cc
|
| diff --git a/net/url_request/url_request_file_job.cc b/net/url_request/url_request_file_job.cc
|
| index ce0cc8be7d3fdc8b76dfaad2cdbd7d3521afd521..a16f7b14c513b71f91085c03e47ef2b357b22434 100644
|
| --- a/net/url_request/url_request_file_job.cc
|
| +++ b/net/url_request/url_request_file_job.cc
|
| @@ -253,10 +253,7 @@ void URLRequestFileJob::SetExtraRequestHeaders(
|
| // static
|
| bool URLRequestFileJob::IsFileAccessAllowed(const URLRequest& request,
|
| const FilePath& path) {
|
| - const URLRequestContext* context = request.context();
|
| - if (!context)
|
| - return false;
|
| - const NetworkDelegate* delegate = context->network_delegate();
|
| + const NetworkDelegate* delegate = request.context()->network_delegate();
|
| if (delegate)
|
| return delegate->CanAccessFile(request, path);
|
| return false;
|
|
|