| 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();
|
|
|