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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some cleanup Created 8 years, 1 month 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
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index c73a21c24ab52d31bf6176b4c4de3e55ce716d96..2397f44633a28aa346284a7f127a9bfc08de2841 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -608,8 +608,8 @@ void ProfileIOData::ApplyProfileParamsToContext(
context->set_ssl_config_service(profile_params_->ssl_config_service);
}
-void ProfileIOData::SetUpJobFactoryDefaults(
- net::URLRequestJobFactoryImpl* job_factory,
+scoped_ptr<net::URLRequestJobFactory> ProfileIOData::SetUpJobFactoryDefaults(
+ scoped_ptr<net::URLRequestJobFactoryImpl> job_factory,
scoped_ptr<net::URLRequestJobFactory::Interceptor>
protocol_handler_interceptor,
net::NetworkDelegate* network_delegate,
@@ -672,6 +672,7 @@ void ProfileIOData::SetUpJobFactoryDefaults(
new net::FtpProtocolHandler(ftp_transaction_factory,
ftp_auth_cache));
#endif // !defined(DISABLE_FTP_SUPPORT)
+ return job_factory.PassAs<net::URLRequestJobFactory>();
}
void ProfileIOData::ShutdownOnUIThread() {

Powered by Google App Engine
This is Rietveld 408576698