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

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

Issue 2939433004: Move common main URLRequestContext setup code to ProfileIOData (Closed)
Patch Set: Fix Created 3 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
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 abab796da1f5888e3c375588254a1c37ef12a15e..f04aef7a5bb75236237584f060f3447b64a27b5b 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -199,21 +199,6 @@ void OffTheRecordProfileIOData::InitializeInternal(
net::URLRequestContextStorage* main_context_storage =
main_request_context_storage();
- IOThread* const io_thread = profile_params->io_thread;
- IOThread::Globals* const io_thread_globals = io_thread->globals();
-
- ApplyProfileParamsToContext(main_context);
-
- main_context->set_transport_security_state(transport_security_state());
- main_context->set_ct_policy_enforcer(
- io_thread_globals->system_request_context->ct_policy_enforcer());
-
- main_context->set_net_log(io_thread->net_log());
-
- main_context->set_http_auth_handler_factory(
- io_thread_globals->system_request_context->http_auth_handler_factory());
- main_context->set_proxy_service(proxy_service());
-
// For incognito, we use the default non-persistent HttpServerPropertiesImpl.
main_context_storage->set_http_server_properties(
base::MakeUnique<net::HttpServerPropertiesImpl>());
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698