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

Unified Diff: net/cert/cert_database.cc

Issue 877993003: Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/base/network_change_notifier.cc ('k') | net/cert/cert_database_android.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 d6a9b1b77fc4c0b8332d31e0aea39e738ab78e82..8591122dc827dcb82f69af4945c80a74410b4acf 100644
--- a/net/cert/cert_database.cc
+++ b/net/cert/cert_database.cc
@@ -25,17 +25,19 @@ void CertDatabase::RemoveObserver(Observer* observer) {
}
void CertDatabase::NotifyObserversOfCertAdded(const X509Certificate* cert) {
- observer_list_->Notify(&Observer::OnCertAdded, make_scoped_refptr(cert));
+ observer_list_->Notify(FROM_HERE, &Observer::OnCertAdded,
+ make_scoped_refptr(cert));
}
void CertDatabase::NotifyObserversOfCertRemoved(const X509Certificate* cert) {
- observer_list_->Notify(&Observer::OnCertRemoved, make_scoped_refptr(cert));
+ observer_list_->Notify(FROM_HERE, &Observer::OnCertRemoved,
+ make_scoped_refptr(cert));
}
void CertDatabase::NotifyObserversOfCACertChanged(
const X509Certificate* cert) {
- observer_list_->Notify(
- &Observer::OnCACertChanged, make_scoped_refptr(cert));
+ observer_list_->Notify(FROM_HERE, &Observer::OnCACertChanged,
+ make_scoped_refptr(cert));
}
} // namespace net
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/cert/cert_database_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698