summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cert_store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cert_store.cc')
-rw-r--r--chrome/browser/cert_store.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/chrome/browser/cert_store.cc b/chrome/browser/cert_store.cc
index 09e71b8..adc7ff1 100644
--- a/chrome/browser/cert_store.cc
+++ b/chrome/browser/cert_store.cc
@@ -36,14 +36,10 @@ CertStore::CertStore() : next_cert_id_(1) {
// removed from cache, and remove the cert when we know it
// is not used anymore.
- // TODO(tc): This notification observer never gets removed because the
- // CertStore is never deleted.
- NotificationService::current()->AddObserver(this,
- NotificationType::RENDERER_PROCESS_TERMINATED,
- NotificationService::AllSources());
- NotificationService::current()->AddObserver(this,
- NotificationType::RENDERER_PROCESS_CLOSED,
- NotificationService::AllSources());
+ registrar_.Add(this, NotificationType::RENDERER_PROCESS_TERMINATED,
+ NotificationService::AllSources());
+ registrar_.Add(this, NotificationType::RENDERER_PROCESS_CLOSED,
+ NotificationService::AllSources());
}
CertStore::~CertStore() {