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

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

Issue 165386: Fix crash with new FTP in Incognito mode. (Closed)
Patch Set: Created 11 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 | « no previous file | no next file » | 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
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698