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

Unified Diff: net/cert/test_root_certs.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 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/nss_cert_database_unittest.cc ('k') | net/cert/x509_certificate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/test_root_certs.cc
diff --git a/net/cert/test_root_certs.cc b/net/cert/test_root_certs.cc
index 3c77ea5a9054ec288383bdf5ca42945ae861b997..3219f1d84c1bb1a7e03e6987ab7aab006da69ec7 100644
--- a/net/cert/test_root_certs.cc
+++ b/net/cert/test_root_certs.cc
@@ -47,7 +47,7 @@ bool TestRootCerts::AddFromFile(const base::FilePath& file) {
if (root_certs.empty() || root_certs.size() > 1)
return false;
- return Add(root_certs.front());
+ return Add(root_certs.front().get());
}
TestRootCerts::TestRootCerts() {
@@ -66,7 +66,7 @@ ScopedTestRoot::~ScopedTestRoot() {
}
void ScopedTestRoot::Reset(X509Certificate* cert) {
- if (cert_)
+ if (cert_.get())
TestRootCerts::GetInstance()->Clear();
if (cert)
TestRootCerts::GetInstance()->Add(cert);
« no previous file with comments | « net/cert/nss_cert_database_unittest.cc ('k') | net/cert/x509_certificate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698