Index: net/url_request/url_request_test_util.cc |
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc |
index 53574f7277fb1ba9ee893e2ac5a614b788e64771..5388b4978a5c66cfae615dbfb3b34c7fe30a8f9e 100644 |
--- a/net/url_request/url_request_test_util.cc |
+++ b/net/url_request/url_request_test_util.cc |
@@ -67,8 +67,12 @@ void TestURLRequestContext::Init() { |
if (!cert_verifier()) |
context_storage_.set_cert_verifier(net::CertVerifier::CreateDefault()); |
if (!ftp_transaction_factory()) { |
+#if !defined(DISABLE_FTP_SUPPORT) |
context_storage_.set_ftp_transaction_factory( |
new net::FtpNetworkLayer(host_resolver())); |
+#else |
+ context_storage_.set_ftp_transaction_factory(NULL); |
+#endif // !defined(DISABLE_FTP_SUPPORT) |
} |
if (!ssl_config_service()) |
context_storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults); |