diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 00:50:53 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 00:50:53 +0000 |
commit | 6ba2ec2e23f79f1882263a4fb1cd12efc0651e88 (patch) | |
tree | efbcef6f1224e165fee0ebd987dd0fc567d13fe4 /chrome/browser/cert_store.cc | |
parent | 10235beedc6fbfdb50453a7568e3279c25714624 (diff) | |
download | chromium_src-6ba2ec2e23f79f1882263a4fb1cd12efc0651e88.zip chromium_src-6ba2ec2e23f79f1882263a4fb1cd12efc0651e88.tar.gz chromium_src-6ba2ec2e23f79f1882263a4fb1cd12efc0651e88.tar.bz2 |
Add a RENDERER_PROCESS_CLOSED notification that gets sent when we close the
RenderProcessHost's process_. This is similar to RENDER_PROCESS_TERMINATED,
but the latter is not always sent since the process could get reused. It also
takes the place of RENDERER_PROCESS_CRASHED, where this one contains a boolean
Details indicating whether the process crashed (true) or just exited (false).
Review URL: http://codereview.chromium.org/100277
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cert_store.cc')
-rw-r--r-- | chrome/browser/cert_store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cert_store.cc b/chrome/browser/cert_store.cc index 55fdc5a..7837380 100644 --- a/chrome/browser/cert_store.cc +++ b/chrome/browser/cert_store.cc @@ -42,7 +42,7 @@ CertStore::CertStore() : next_cert_id_(1) { NotificationType::RENDERER_PROCESS_TERMINATED, NotificationService::AllSources()); NotificationService::current()->AddObserver(this, - NotificationType::RENDERER_PROCESS_CRASHED, + NotificationType::RENDERER_PROCESS_CLOSED, NotificationService::AllSources()); } @@ -139,7 +139,7 @@ void CertStore::Observe(NotificationType type, const NotificationSource& source, const NotificationDetails& details) { DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED || - type == NotificationType::RENDERER_PROCESS_CRASHED); + type == NotificationType::RENDERER_PROCESS_CLOSED); RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); DCHECK(rph); RemoveCertsForRenderProcesHost(rph->pid()); |