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

Unified Diff: net/url_request/url_request_http_job.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 | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_quic_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 203a6e282086e3d0163432a31ff718c723427755..5854617532ae87e83444639e56b36b178bcbe02d 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -124,19 +124,21 @@ void LogChannelIDAndCookieStores(const GURL& url,
PERSISTENT_UNKNOWN = 12,
EPHEMERALITY_MAX
} ephemerality;
- const net::HttpNetworkSession::Params* params =
- context->GetNetworkSessionParams();
+ const net::HttpNetworkSession::Context* session_context =
+ context->GetNetworkSessionContext();
net::CookieStore* cookie_store = context->cookie_store();
- if (params == nullptr || params->channel_id_service == nullptr) {
+ if (session_context == nullptr ||
+ session_context->channel_id_service == nullptr) {
ephemerality = NO_CHANNEL_ID_STORE;
} else if (cookie_store == nullptr) {
ephemerality = NO_COOKIE_STORE;
- } else if (params->channel_id_service->GetChannelIDStore()->IsEphemeral()) {
+ } else if (session_context->channel_id_service->GetChannelIDStore()
+ ->IsEphemeral()) {
if (cookie_store->IsEphemeral()) {
if (cookie_store->GetChannelIDServiceID() == -1) {
ephemerality = EPHEMERAL_UNKNOWN;
} else if (cookie_store->GetChannelIDServiceID() ==
- params->channel_id_service->GetUniqueID()) {
+ session_context->channel_id_service->GetUniqueID()) {
ephemerality = EPHEMERAL_MATCH;
} else {
NOTREACHED();
@@ -152,7 +154,7 @@ void LogChannelIDAndCookieStores(const GURL& url,
} else if (cookie_store->GetChannelIDServiceID() == -1) {
ephemerality = PERSISTENT_UNKNOWN;
} else if (cookie_store->GetChannelIDServiceID() ==
- params->channel_id_service->GetUniqueID()) {
+ session_context->channel_id_service->GetUniqueID()) {
ephemerality = PERSISTENT_MATCH;
} else {
NOTREACHED();
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_quic_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698