Chromium Code Reviews| Index: chrome/browser/profiles/off_the_record_profile_io_data.cc |
| diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc |
| index c33f78c2c4b2fbdacaa4c59c3bbeffe6e40468c9..54946089d23e57a1380e2b61964d848c059ed262 100644 |
| --- a/chrome/browser/profiles/off_the_record_profile_io_data.cc |
| +++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc |
| @@ -27,6 +27,8 @@ |
| #include "net/ftp/ftp_network_layer.h" |
| #include "net/http/http_cache.h" |
| #include "net/http/http_server_properties_impl.h" |
| +#include "net/url_request/ftp_protocol_handler.h" |
| +#include "net/url_request/url_request_job_factory.h" |
| #include "webkit/database/database_tracker.h" |
| using content::BrowserThread; |
| @@ -243,11 +245,26 @@ void OffTheRecordProfileIOData::LazyInitializeInternal( |
| new net::FtpNetworkLayer(main_context->host_resolver())); |
| main_context->set_ftp_transaction_factory(ftp_factory_.get()); |
| + ftp_auth_cache_.reset(new net::FtpAuthCache); |
| + |
| main_context->set_chrome_url_data_manager_backend( |
| chrome_url_data_manager_backend()); |
| - main_context->set_job_factory(job_factory()); |
| - extensions_context->set_job_factory(job_factory()); |
| + main_factory_.reset(new net::URLRequestJobFactory); |
|
erikwright (departed)
2012/06/13 15:31:42
rename to {main,extensions}_job_factory_
shalev
2012/06/21 20:04:55
Done.
|
| + extentions_factory_.reset(new net::URLRequestJobFactory); |
| + |
| + SetUpJobFactoryDefaults(main_factory_.get()); |
| + SetUpJobFactoryDefaults(extentions_factory_.get()); |
| + |
| + main_factory_->SetProtocolHandler(chrome::kFtpScheme, |
| + new net::FtpProtocolHandler( |
| + network_delegate(), ftp_factory_.get(), ftp_auth_cache_.get())); |
| + extentions_factory_->SetProtocolHandler(chrome::kFtpScheme, |
| + new net::FtpProtocolHandler( |
| + network_delegate(), ftp_factory_.get(), ftp_auth_cache_.get())); |
| + |
| + main_context->set_job_factory(main_factory_.get()); |
| + extensions_context->set_job_factory(extentions_factory_.get()); |
| } |
| ChromeURLRequestContext* |