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

Unified Diff: webkit/tools/test_shell/test_shell_request_context.cc

Issue 165091: Enable new FTP for Windows TestShell so that the results of block-test.html a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | « webkit/tools/layout_tests/test_expectations.txt ('k') | webkit/tools/test_shell/test_shell_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_request_context.cc
===================================================================
--- webkit/tools/test_shell/test_shell_request_context.cc (revision 22683)
+++ webkit/tools/test_shell/test_shell_request_context.cc (working copy)
@@ -4,13 +4,11 @@
#include "webkit/tools/test_shell/test_shell_request_context.h"
-#include "base/command_line.h"
#include "net/base/cookie_monster.h"
#include "net/base/host_resolver.h"
#include "net/ftp/ftp_network_layer.h"
#include "net/proxy/proxy_service.h"
#include "webkit/glue/webkit_glue.h"
-#include "webkit/tools/test_shell/test_shell_switches.h"
TestShellRequestContext::TestShellRequestContext() {
Init(std::wstring(), net::HttpCache::NORMAL, false);
@@ -58,14 +56,7 @@
cache->set_mode(cache_mode);
http_transaction_factory_ = cache;
- // The kNewFtp switch is Windows specific only because we have multiple FTP
- // implementations on Windows.
-#if defined(OS_WIN)
- if (CommandLine::ForCurrentProcess()->HasSwitch(test_shell::kNewFtp))
- ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_);
-#else
ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_);
-#endif
}
TestShellRequestContext::~TestShellRequestContext() {
« no previous file with comments | « webkit/tools/layout_tests/test_expectations.txt ('k') | webkit/tools/test_shell/test_shell_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698