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

Unified Diff: net/cert/internal/cert_errors.cc

Issue 2326923002: Introduce CertErrors::ToDebugString(). (Closed)
Patch Set: checkpoint Created 4 years, 3 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 | « net/cert/internal/cert_errors.h ('k') | net/cert/internal/verify_certificate_chain_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/cert_errors.cc
diff --git a/net/cert/internal/cert_errors.cc b/net/cert/internal/cert_errors.cc
index 00500304302332c3d7a03f3e0543d563d13f02b1..d00d7fb0e3bf200b6c47ec1c71783262621a7ee3 100644
--- a/net/cert/internal/cert_errors.cc
+++ b/net/cert/internal/cert_errors.cc
@@ -54,6 +54,16 @@ void CertErrors::AddWith2DerParams(CertErrorType type,
AddWithParam(type, base::MakeUnique<CertErrorParamsDer2>(der1, der2));
}
+std::string CertErrors::ToDebugString() const {
+ std::string str;
+ for (const auto& error : errors_) {
+ if (!str.empty())
+ str += "\n";
+ str += error.type;
+ }
+ return str;
+}
+
ScopedCertErrorsCertContext::ScopedCertErrorsCertContext(
CertErrors* parent,
const ParsedCertificate* cert,
« no previous file with comments | « net/cert/internal/cert_errors.h ('k') | net/cert/internal/verify_certificate_chain_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698