summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-05 00:50:53 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-05 00:50:53 +0000
commit6ba2ec2e23f79f1882263a4fb1cd12efc0651e88 (patch)
treeefbcef6f1224e165fee0ebd987dd0fc567d13fe4 /chrome/browser/extensions
parent10235beedc6fbfdb50453a7568e3279c25714624 (diff)
downloadchromium_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/extensions')
-rwxr-xr-xchrome/browser/extensions/extension_message_service.cc5
1 files changed, 3 insertions, 2 deletions
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<RenderProcessHost>(source).ptr();
{