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

Unified Diff: chrome/browser/io_thread.cc

Issue 2184053002: Remove --certificate-transparency-log command-line flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes unrelated to flag removal. Created 4 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index b25829b2206f5bd1f3b6562de8c06ecbfa83350b..807a11568a96a60223eb6234f31db4316cd82da8 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -538,34 +538,6 @@ void IOThread::Init() {
std::vector<scoped_refptr<const net::CTLogVerifier>> ct_logs(
net::ct::CreateLogVerifiersForKnownLogs());
- // Add logs from command line
- if (command_line.HasSwitch(switches::kCertificateTransparencyLog)) {
- std::string switch_value = command_line.GetSwitchValueASCII(
- switches::kCertificateTransparencyLog);
- for (const base::StringPiece& curr_log : base::SplitStringPiece(
- switch_value, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) {
- std::vector<std::string> log_metadata = base::SplitString(
- curr_log, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
- CHECK_GE(log_metadata.size(), 3u)
- << "CT log metadata missing: Switch format is "
- << "'description:base64_key:url_without_schema[:dns_domain]'.";
- std::string log_description(log_metadata[0]);
- std::string log_url(std::string("https://") + log_metadata[2]);
- std::string log_dns_domain;
- if (log_metadata.size() >= 4)
- log_dns_domain = log_metadata[3];
- std::string ct_public_key_data;
- CHECK(base::Base64Decode(log_metadata[1], &ct_public_key_data))
- << "Unable to decode CT public key.";
- scoped_refptr<const net::CTLogVerifier> external_log_verifier(
- net::CTLogVerifier::Create(ct_public_key_data, log_description,
- log_url, log_dns_domain));
- CHECK(external_log_verifier) << "Unable to parse CT public key.";
- VLOG(1) << "Adding log with description " << log_description;
- ct_logs.push_back(external_log_verifier);
- }
- }
-
globals_->ct_logs.assign(ct_logs.begin(), ct_logs.end());
net::MultiLogCTVerifier* ct_verifier = new net::MultiLogCTVerifier();
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698