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

Unified Diff: net/cert/cert_database.cc

Issue 1815363002: Add RetainedRef uses where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « ipc/ipc_sync_channel.cc ('k') | net/cert/nss_cert_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_database.cc
diff --git a/net/cert/cert_database.cc b/net/cert/cert_database.cc
index 7b85fc74d9df839b433c474528eec8404a9a8daf..3d423b0c4f4ea3e92d7279e04f9ea88570267db2 100644
--- a/net/cert/cert_database.cc
+++ b/net/cert/cert_database.cc
@@ -27,18 +27,18 @@ void CertDatabase::RemoveObserver(Observer* observer) {
void CertDatabase::NotifyObserversOfCertAdded(const X509Certificate* cert) {
observer_list_->Notify(FROM_HERE, &Observer::OnCertAdded,
- make_scoped_refptr(cert));
+ base::RetainedRef(cert));
}
void CertDatabase::NotifyObserversOfCertRemoved(const X509Certificate* cert) {
observer_list_->Notify(FROM_HERE, &Observer::OnCertRemoved,
- make_scoped_refptr(cert));
+ base::RetainedRef(cert));
}
void CertDatabase::NotifyObserversOfCACertChanged(
const X509Certificate* cert) {
observer_list_->Notify(FROM_HERE, &Observer::OnCACertChanged,
- make_scoped_refptr(cert));
+ base::RetainedRef(cert));
}
} // namespace net
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | net/cert/nss_cert_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698