Chromium Code Reviews| Index: chrome/browser/net/chrome_url_request_context.cc |
| diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc |
| index f6df4a286ffcf1927cff0ba1f0d6685956495022..33b7f2de7477d3d69cab97ced74c7615587ba147 100644 |
| --- a/chrome/browser/net/chrome_url_request_context.cc |
| +++ b/chrome/browser/net/chrome_url_request_context.cc |
| @@ -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 only because we have multiple FTP |
|
wtc
2009/08/12 17:25:50
Nit: pick one of "specific" and "only". We don't
|
| + // 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; |
| } |