| Index: net/url_request/url_request_ftp_job.cc
|
| diff --git a/net/url_request/url_request_ftp_job.cc b/net/url_request/url_request_ftp_job.cc
|
| index fb345990386e87a00ec263490966bebb93afef10..e910625bf98ac2648f65df171a10e714cd6e16f4 100644
|
| --- a/net/url_request/url_request_ftp_job.cc
|
| +++ b/net/url_request/url_request_ftp_job.cc
|
| @@ -35,17 +35,20 @@ URLRequestFtpJob::URLRequestFtpJob(
|
|
|
| // static
|
| URLRequestJob* URLRequestFtpJob::Factory(URLRequest* request,
|
| + NetworkDelegate* network_delegate,
|
| const std::string& scheme) {
|
| DCHECK_EQ(scheme, "ftp");
|
|
|
| int port = request->url().IntPort();
|
| if (request->url().has_port() &&
|
| !IsPortAllowedByFtp(port) && !IsPortAllowedByOverride(port)) {
|
| - return new URLRequestErrorJob(request, ERR_UNSAFE_PORT);
|
| + return new URLRequestErrorJob(request,
|
| + network_delegate,
|
| + ERR_UNSAFE_PORT);
|
| }
|
|
|
| return new URLRequestFtpJob(request,
|
| - request->context()->network_delegate(),
|
| + network_delegate,
|
| request->context()->ftp_transaction_factory(),
|
| request->context()->ftp_auth_cache());
|
| }
|
|
|