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

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

Issue 1211933005: Initial (partial) implementation of HPKP violation reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style fixes, comments Created 5 years, 6 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/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/ping_manager.cc » ('j') | 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 a3da86cfbb76e71f950fe687acfb4650faf685f1..8e4ba02694b9bba381bfe32c35a97bdf31123543 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -64,9 +64,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"
@@ -1057,6 +1059,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::CertificateReportSender::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;
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698