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

Unified Diff: chrome/browser/cert_store.cc

Issue 66069: Don't overload the meaning of the RENDERER_PROCESS_TERMINATED notification, i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « no previous file | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cert_store.cc
===================================================================
--- chrome/browser/cert_store.cc (revision 13189)
+++ chrome/browser/cert_store.cc (working copy)
@@ -41,6 +41,9 @@
NotificationService::current()->AddObserver(this,
NotificationType::RENDERER_PROCESS_TERMINATED,
NotificationService::AllSources());
+ NotificationService::current()->AddObserver(this,
+ NotificationType::RENDERER_PROCESS_CRASHED,
+ NotificationService::AllSources());
}
CertStore::~CertStore() {
@@ -135,7 +138,8 @@
void CertStore::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED);
+ DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED ||
+ type == NotificationType::RENDERER_PROCESS_CRASHED);
RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr();
DCHECK(rph);
RemoveCertsForRenderProcesHost(rph->pid());
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698