Commit b75875c1 authored by eranm@chromium.org's avatar eranm@chromium.org

Certificate Transparency: validate SCTs in incognito mode.

The CT verifier is needed in the off-the-record profile to
do SCT validation. Currently the CT verifier is stateless
so it is safe to share it with the OTR profile.

BUG=395648

Review URL: https://codereview.chromium.org/411333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285584 0039d316-1c4b-4281-b951-d872f2087c98
parent b40fa100
...@@ -209,6 +209,9 @@ void OffTheRecordProfileIOData::InitializeInternal( ...@@ -209,6 +209,9 @@ void OffTheRecordProfileIOData::InitializeInternal(
main_context->set_throttler_manager( main_context->set_throttler_manager(
io_thread_globals->throttler_manager.get()); io_thread_globals->throttler_manager.get());
main_context->set_cert_transparency_verifier(
io_thread_globals->cert_transparency_verifier.get());
// For incognito, we use the default non-persistent HttpServerPropertiesImpl. // For incognito, we use the default non-persistent HttpServerPropertiesImpl.
set_http_server_properties( set_http_server_properties(
scoped_ptr<net::HttpServerProperties>( scoped_ptr<net::HttpServerProperties>(
...@@ -287,6 +290,9 @@ void OffTheRecordProfileIOData:: ...@@ -287,6 +290,9 @@ void OffTheRecordProfileIOData::
extensions_context->set_throttler_manager( extensions_context->set_throttler_manager(
io_thread_globals->throttler_manager.get()); io_thread_globals->throttler_manager.get());
extensions_context->set_cert_transparency_verifier(
io_thread_globals->cert_transparency_verifier.get());
// All we care about for extensions is the cookie store. For incognito, we // All we care about for extensions is the cookie store. For incognito, we
// use a non-persistent cookie store. // use a non-persistent cookie store.
net::CookieMonster* extensions_cookie_store = net::CookieMonster* extensions_cookie_store =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment