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

Unified Diff: net/url_request/url_request_ftp_job.cc

Issue 42197: Add command line switch "--new-ftp" for new portable... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 9 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 | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_new_ftp_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_ftp_job.cc
===================================================================
--- net/url_request/url_request_ftp_job.cc (revision 11734)
+++ net/url_request/url_request_ftp_job.cc (working copy)
@@ -11,13 +11,14 @@
#include "base/string_util.h"
#include "base/time.h"
#include "net/base/auth.h"
+#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/base/net_util.h"
#include "net/base/wininet_util.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_error_job.h"
-#include "net/base/escape.h"
+#include "net/url_request/url_request_new_ftp_job.h"
using std::string;
@@ -53,6 +54,10 @@
// static
URLRequestJob* URLRequestFtpJob::Factory(URLRequest* request,
const std::string &scheme) {
+ // Checking whether we are using new or old FTP implementation.
+ if (request->context() && request->context()->ftp_transaction_factory())
+ return URLRequestNewFtpJob::Factory(request, scheme);
+
DCHECK(scheme == "ftp");
if (request->url().has_port() &&
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_new_ftp_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698