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

Unified Diff: components/certificate_transparency/log_dns_client.cc

Issue 2547863002: Move base32 into base so that it can be used within base.
Patch Set: sync to position 437832 Created 4 years 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 | « components/certificate_transparency/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/certificate_transparency/log_dns_client.cc
diff --git a/components/certificate_transparency/log_dns_client.cc b/components/certificate_transparency/log_dns_client.cc
index fabbbac4698c36a0e36c9d5690f38ab9aa85587a..9ddba5471433681b78b7189ccde9a7677cb97d36 100644
--- a/components/certificate_transparency/log_dns_client.cc
+++ b/components/certificate_transparency/log_dns_client.cc
@@ -4,6 +4,7 @@
#include "components/certificate_transparency/log_dns_client.h"
+#include "base/base32.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/format_macros.h"
@@ -15,7 +16,6 @@
#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
-#include "components/base32/base32.h"
#include "crypto/sha2.h"
#include "net/cert/merkle_audit_proof.h"
#include "net/dns/dns_client.h"
@@ -275,8 +275,8 @@ void LogDnsClient::AuditProofQuery::OnDnsTransactionComplete(
}
net::Error LogDnsClient::AuditProofQuery::RequestLeafIndex() {
- std::string encoded_leaf_hash = base32::Base32Encode(
- leaf_hash_, base32::Base32EncodePolicy::OMIT_PADDING);
+ std::string encoded_leaf_hash =
+ base::Base32Encode(leaf_hash_, base::Base32EncodePolicy::OMIT_PADDING);
DCHECK_EQ(encoded_leaf_hash.size(), 52u);
std::string qname = base::StringPrintf(
« no previous file with comments | « components/certificate_transparency/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698