From 6ba2ec2e23f79f1882263a4fb1cd12efc0651e88 Mon Sep 17 00:00:00 2001 From: "mpcomplete@google.com" Date: Tue, 5 May 2009 00:50:53 +0000 Subject: 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 --- chrome/browser/extensions/extension_message_service.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/extensions') diff --git a/chrome/browser/extensions/extension_message_service.cc b/chrome/browser/extensions/extension_message_service.cc index afac5c9..4a96c12 100755 --- a/chrome/browser/extensions/extension_message_service.cc +++ b/chrome/browser/extensions/extension_message_service.cc @@ -81,7 +81,7 @@ void ExtensionMessageService::Init() { NotificationType::RENDERER_PROCESS_TERMINATED, NotificationService::AllSources()); NotificationService::current()->AddObserver(this, - NotificationType::RENDERER_PROCESS_CRASHED, + NotificationType::RENDERER_PROCESS_CLOSED, NotificationService::AllSources()); } @@ -214,7 +214,8 @@ void ExtensionMessageService::Observe(NotificationType type, DCHECK_EQ(MessageLoop::current()->type(), MessageLoop::TYPE_UI); DCHECK(type.value == NotificationType::RENDERER_PROCESS_TERMINATED || - type.value == NotificationType::RENDERER_PROCESS_CRASHED); + type.value == NotificationType::RENDERER_PROCESS_CLOSED); + RenderProcessHost* renderer = Source(source).ptr(); { -- cgit v1.1