| 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 e910625bf98ac2648f65df171a10e714cd6e16f4..805914b93e28982e38c6c5c1b75632e542e093fe 100644
|
| --- a/net/url_request/url_request_ftp_job.cc
|
| +++ b/net/url_request/url_request_ftp_job.cc
|
| @@ -33,26 +33,6 @@ URLRequestFtpJob::URLRequestFtpJob(
|
| DCHECK(ftp_auth_cache);
|
| }
|
|
|
| -// 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,
|
| - network_delegate,
|
| - ERR_UNSAFE_PORT);
|
| - }
|
| -
|
| - return new URLRequestFtpJob(request,
|
| - network_delegate,
|
| - request->context()->ftp_transaction_factory(),
|
| - request->context()->ftp_auth_cache());
|
| -}
|
| -
|
| bool URLRequestFtpJob::GetMimeType(std::string* mime_type) const {
|
| if (transaction_->GetResponseInfo()->is_directory_listing) {
|
| *mime_type = "text/vnd.chromium.ftp-dir";
|
|
|