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 d75015105e3d77c124255ff03f16aa3c7ef4e614..9a2760ad9f10956d421fa08d308626b6def27633 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc |
@@ -192,6 +192,7 @@ |
} |
void OffTheRecordProfileIOData::InitializeInternal( |
+ std::unique_ptr<ChromeNetworkDelegate> chrome_network_delegate, |
ProfileParams* profile_params, |
content::ProtocolHandlerMap* protocol_handlers, |
content::URLRequestInterceptorScopedVector request_interceptors) const { |
@@ -212,6 +213,11 @@ |
main_context->set_net_log(io_thread->net_log()); |
+ main_context_storage->set_network_delegate( |
+ std::move(chrome_network_delegate)); |
+ |
+ main_context->set_host_resolver( |
+ io_thread_globals->host_resolver.get()); |
main_context->set_http_auth_handler_factory( |
io_thread_globals->http_auth_handler_factory.get()); |
main_context->set_proxy_service(proxy_service()); |