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

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

Issue 2975903002: Make ProfileURLRequestContexts use their own CTPolicyEnforcer. (Closed)
Patch Set: Created 3 years, 5 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
« chrome/browser/io_thread.cc ('K') | « chrome/browser/io_thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e9fa0c5c42852d41b9e3c2a3a353a8bef481290f..95cc04a90d387ace13564693ec84b65a5e18f0a4 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -83,6 +83,7 @@
#include "extensions/features/features.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/ct_log_verifier.h"
+#include "net/cert/ct_policy_enforcer.h"
#include "net/cert/multi_log_ct_verifier.h"
#include "net/cookies/canonical_cookie.h"
#include "net/http/http_network_session.h"
@@ -1148,8 +1149,8 @@ void ProfileIOData::Init(
base::Bind(&IOThread::UnregisterSTHObserver, base::Unretained(io_thread),
ct_tree_tracker_.get());
- main_request_context_->set_ct_policy_enforcer(
- io_thread_globals->system_request_context->ct_policy_enforcer());
+ main_request_context_storage_->set_ct_policy_enforcer(
+ base::MakeUnique<net::CTPolicyEnforcer>());
InitializeInternal(profile_params_.get(), protocol_handlers,
std::move(request_interceptors));
« chrome/browser/io_thread.cc ('K') | « chrome/browser/io_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698