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())); |