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: chrome/browser/profiles/profile_impl_io_data.cc

Issue 10537056: Replaced static URLRequestFtpJob factory with non-static protocol handler for FTP jobs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 | net/net.gyp » ('j') | net/url_request/ftp_protocol_handler.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 454f0b04212b1373120191fc5af6cdc2fbb4abf4..729425e5caaa1796bd201be54ffbdba3f0f64fd3 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -32,6 +32,9 @@
#include "net/http/http_cache.h"
#include "net/url_request/url_request_job_factory.h"
#include "webkit/quota/special_storage_policy.h"
+#include "net/url_request/url_request_ftp_job.h"
erikwright (departed) 2012/06/07 19:14:51 Probably don't need url_request_ftp_job.h anymore.
shalev 2012/06/21 20:04:55 Done.
shalev 2012/06/21 20:04:55 Done.
+#include "net/ftp/ftp_auth_cache.h"
+#include "net/url_request/ftp_protocol_handler.h"
Paweł Hajdan Jr. 2012/06/07 19:30:21 nit: Hey, keep the headers sorted! 1. #include ne
shalev 2012/06/21 20:04:55 Done.
using content::BrowserThread;
@@ -450,6 +453,10 @@ void ProfileImplIOData::LazyInitializeInternal(
media_request_context_->set_job_factory(job_factory());
extensions_context->set_job_factory(job_factory());
+ job_factory()->SetProtocolHandler(chrome::kFtpScheme,
+ new net::FtpProtocolHandler(
+ network_delegate(), ftp_factory_.get(), new net::FtpAuthCache));
+
job_factory()->AddInterceptor(
new chrome_browser_net::ConnectInterceptor(predictor_.get()));
« no previous file with comments | « no previous file | net/net.gyp » ('j') | net/url_request/ftp_protocol_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698