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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 523034: Remove WinInet FTP code. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 12 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 | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
===================================================================
--- chrome/browser/net/chrome_url_request_context.cc (revision 35423)
+++ chrome/browser/net/chrome_url_request_context.cc (working copy)
@@ -168,16 +168,8 @@
}
context->set_http_transaction_factory(cache);
- // The kWininetFtp switch is Windows specific because we have two FTP
- // implementations on Windows.
-#if defined(OS_WIN)
- if (!command_line.HasSwitch(switches::kWininetFtp))
- context->set_ftp_transaction_factory(
- new net::FtpNetworkLayer(context->host_resolver()));
-#else
context->set_ftp_transaction_factory(
new net::FtpNetworkLayer(context->host_resolver()));
-#endif
// setup cookie store
if (!context->cookie_store()) {
@@ -272,16 +264,8 @@
switches::kDisableByteRangeSupport))
cache->set_enable_range_support(false);
- // The kWininetFtp switch is Windows specific because we have two FTP
- // implementations on Windows.
-#if defined(OS_WIN)
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kWininetFtp))
- context->set_ftp_transaction_factory(
- new net::FtpNetworkLayer(context->host_resolver()));
-#else
context->set_ftp_transaction_factory(
new net::FtpNetworkLayer(context->host_resolver()));
-#endif
// Create a separate AppCacheService for OTR mode.
context->set_appcache_service(
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698