Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: net/url_request/url_request_test_util.cc

Issue 10880071: Disable FTP on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: After rebasing Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_job_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « net/url_request/url_request_job_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698