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

Unified Diff: chrome/common/net/x509_certificate_model_nss.cc

Issue 8368018: Convert chrome/common non-debug logs to debug logs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « chrome/common/net/gaia/gaia_auth_fetcher.cc ('k') | chrome/common/net/x509_certificate_model_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/x509_certificate_model_nss.cc
===================================================================
--- chrome/common/net/x509_certificate_model_nss.cc (revision 107051)
+++ chrome/common/net/x509_certificate_model_nss.cc (working copy)
@@ -332,23 +332,23 @@
string GetCMSString(const X509Certificate::OSCertHandles& cert_chain,
size_t start, size_t end) {
ScopedPRArenaPool arena(PORT_NewArena(1024));
- CHECK(arena.get());
+ DCHECK(arena.get());
ScopedNSSCMSMessage message(NSS_CMSMessage_Create(arena.get()));
- CHECK(message.get());
+ DCHECK(message.get());
// First, create SignedData with the certificate only (no chain).
ScopedNSSCMSSignedData signed_data(NSS_CMSSignedData_CreateCertsOnly(
message.get(), cert_chain[start], PR_FALSE));
if (!signed_data.get()) {
- LOG(ERROR) << "NSS_CMSSignedData_Create failed";
+ DLOG(ERROR) << "NSS_CMSSignedData_Create failed";
return "";
}
// Add the rest of the chain (if any).
for (size_t i = start + 1; i < end; ++i) {
if (NSS_CMSSignedData_AddCertificate(signed_data.get(), cert_chain[i]) !=
SECSuccess) {
- LOG(ERROR) << "NSS_CMSSignedData_AddCertificate failed on " << i;
+ DLOG(ERROR) << "NSS_CMSSignedData_AddCertificate failed on " << i;
return "";
}
}
@@ -358,7 +358,7 @@
message.get(), cinfo, signed_data.get()) == SECSuccess) {
ignore_result(signed_data.release());
} else {
- LOG(ERROR) << "NSS_CMSMessage_GetContentInfo failed";
+ DLOG(ERROR) << "NSS_CMSMessage_GetContentInfo failed";
return "";
}
@@ -368,12 +368,12 @@
NULL, NULL, NULL, NULL,
NULL);
if (!ecx) {
- LOG(ERROR) << "NSS_CMSEncoder_Start failed";
+ DLOG(ERROR) << "NSS_CMSEncoder_Start failed";
return "";
}
if (NSS_CMSEncoder_Finish(ecx) != SECSuccess) {
- LOG(ERROR) << "NSS_CMSEncoder_Finish failed";
+ DLOG(ERROR) << "NSS_CMSEncoder_Finish failed";
return "";
}
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher.cc ('k') | chrome/common/net/x509_certificate_model_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698