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 0963814dfe9779f2d6761433ad2ca2389c51b892..e92a7a44f18c03fd2c202a8e057fcef62b8ca77c 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -65,9 +65,11 @@ |
#include "content/public/browser/resource_context.h" |
#include "net/base/keygen_handler.h" |
#include "net/cookies/canonical_cookie.h" |
+#include "net/http/certificate_report_sender_impl.h" |
#include "net/http/http_transaction_factory.h" |
#include "net/http/http_util.h" |
#include "net/http/transport_security_persister.h" |
+#include "net/http/transport_security_reporter.h" |
#include "net/proxy/proxy_config_service_fixed.h" |
#include "net/proxy/proxy_script_fetcher_impl.h" |
#include "net/proxy/proxy_service.h" |
@@ -1059,6 +1061,17 @@ void ProfileIOData::Init( |
base::SequencedWorkerPool::BLOCK_SHUTDOWN), |
IsOffTheRecord())); |
+ // TODO(estark): introduce a ChromeTransportSecurityReporter class |
+ // that covers the ChromeFraudulentCertificateReporter functionality, |
+ // instantiate it here, and then remove FraudulentCertificateReporter |
+ // and ChromeFraudulentCertificateReporter. |
+ transport_security_reporter_.reset(new net::TransportSecurityReporter( |
+ transport_security_state_.get(), |
+ scoped_ptr<net::CertificateReportSender>( |
+ new net::CertificateReportSenderImpl( |
+ main_request_context_.get(), |
+ net::CertificateReportSenderImpl::DO_NOT_SEND_COOKIES)))); |
+ |
// Take ownership over these parameters. |
cookie_settings_ = profile_params_->cookie_settings; |
host_content_settings_map_ = profile_params_->host_content_settings_map; |