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

Unified Diff: chrome/browser/io_thread.cc

Issue 1100003006: Certificate Transparency: Fetching of Signed Tree Heads (DRAFT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 34fe6b88f55660e46a3825624e5e9534e4297f89..e82d96adcf78410f36c007d8557bda09a7bbbc08 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -40,6 +40,8 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/pref_names.h"
+#include "components/certificate_transparency/log_proofs_fetcher.h"
+#include "components/certificate_transparency/new_scts_observer.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/policy/core/common/policy_service.h"
@@ -738,7 +740,7 @@ void IOThread::InitAsync() {
&ct_public_key_data))
<< "Unable to decode CT public key.";
scoped_ptr<net::CTLogVerifier> external_log_verifier(
- net::CTLogVerifier::Create(ct_public_key_data, log_description));
+ net::CTLogVerifier::Create(ct_public_key_data, log_description, ""));
Ryan Sleevi 2015/04/24 10:42:05 s/""/std::string()/
Eran Messeri 2015/06/18 15:18:40 Obsolete.
CHECK(external_log_verifier) << "Unable to parse CT public key.";
VLOG(1) << "Adding log with description " << log_description;
ct_verifier->AddLog(external_log_verifier.Pass());
@@ -896,6 +898,12 @@ void IOThread::InitAsync() {
globals_->proxy_script_fetcher_context.reset(
ConstructProxyScriptFetcherContext(globals_, net_log_));
+ certificate_transparency::NewSCTsObserver* scts_observer =
Ryan Sleevi 2015/04/24 10:42:05 LEAK/DESIGN: Where does this ever get deleted? If
Eran Messeri 2015/06/18 15:18:40 Per design discussion over email, the observer is
+ new certificate_transparency::NewSCTsObserver(
+ new certificate_transparency::LogProofsFetcher(
+ globals_->system_request_context.get()));
+ ct_verifier->AddObserver(scts_observer);
+
#if defined(OS_MACOSX) && !defined(OS_IOS)
// Start observing Keychain events. This needs to be done on the UI thread,
// as Keychain services requires a CFRunLoop.
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/chrome_browser.gypi » ('j') | components/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698