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

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

Issue 2907463002: Split HttpNetworkSession::Params into two structs. (Closed)
Patch Set: Response to comments Created 3 years, 7 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/profiles/profile_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c41e80c2908fe97b368a40e9eedde4de044bf41c..3510d1266a8ea9bdd0c10bc3d1354afa75a652c8 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -289,11 +289,13 @@ net::URLRequestContext* OffTheRecordProfileIOData::InitializeAppRequestContext(
context->SetCookieStore(std::move(cookie_store));
// Build a new HttpNetworkSession that uses the new ChannelIDService.
- net::HttpNetworkSession::Params network_params =
- main_request_context_storage()->http_network_session()->params();
- network_params.channel_id_service = channel_id_service.get();
+ net::HttpNetworkSession::Context session_context =
+ main_request_context_storage()->http_network_session()->context();
+ session_context.channel_id_service = channel_id_service.get();
std::unique_ptr<net::HttpNetworkSession> http_network_session(
- new net::HttpNetworkSession(network_params));
+ new net::HttpNetworkSession(
+ main_request_context_storage()->http_network_session()->params(),
+ session_context));
// Use a separate in-memory cache for the app.
std::unique_ptr<net::HttpCache> app_http_cache = CreateMainHttpFactory(
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/profiles/profile_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698