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

Unified Diff: chromeos/network/onc/onc_utils.cc

Issue 18308004: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
Index: chromeos/network/onc/onc_utils.cc
diff --git a/chromeos/network/onc/onc_utils.cc b/chromeos/network/onc/onc_utils.cc
index 2f9df7d332bd96997ddf0b4c36a9b44d69b420f8..252f88d77e714f1589842e45052364889368604b 100644
--- a/chromeos/network/onc/onc_utils.cc
+++ b/chromeos/network/onc/onc_utils.cc
@@ -383,8 +383,8 @@ scoped_refptr<net::X509Certificate> DecodePEMCertificate(
std::string decoded = DecodePEM(pem_encoded);
scoped_refptr<net::X509Certificate> cert =
net::X509Certificate::CreateFromBytes(decoded.data(), decoded.size());
- LOG_IF(ERROR, !cert) << "Couldn't create certificate from X509 data: "
- << decoded;
+ LOG_IF(ERROR, !cert.get()) << "Couldn't create certificate from X509 data: "
+ << decoded;
return cert;
}
« no previous file with comments | « chrome/test/data/webui/certificate_viewer_ui_test-inl.h ('k') | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698