diff options
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc index f6df4a2..2c19fbc 100644 --- a/chrome/browser/net/chrome_url_request_context.cc +++ b/chrome/browser/net/chrome_url_request_context.cc @@ -136,7 +136,7 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOriginal( } context->http_transaction_factory_ = cache; - // The kNewFtp switch is Windows specific only because we have multiple FTP + // The kNewFtp switch is Windows specific because we have multiple FTP // implementations on Windows. #if defined(OS_WIN) if (command_line.HasSwitch(switches::kNewFtp)) @@ -207,6 +207,17 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOffTheRecord( new net::HttpCache(context->host_resolver_, context->proxy_service_, 0); context->cookie_store_ = new net::CookieMonster; + // The kNewFtp switch is Windows specific because we have multiple FTP + // implementations on Windows. +#if defined(OS_WIN) + if (command_line.HasSwitch(switches::kNewFtp)) + context->ftp_transaction_factory_ = + new net::FtpNetworkLayer(context->host_resolver_); +#else + context->ftp_transaction_factory_ = + new net::FtpNetworkLayer(context->host_resolver_); +#endif + return context; } |