Index: content/browser/web_contents/render_view_host_manager.cc |
diff --git a/content/browser/web_contents/render_view_host_manager.cc b/content/browser/web_contents/render_view_host_manager.cc |
index ed674d5c90592252e3345ecba9780f7e0698fa3f..648664a1bcfe9655366da81aac3fa7c46c2089f4 100644 |
--- a/content/browser/web_contents/render_view_host_manager.cc |
+++ b/content/browser/web_contents/render_view_host_manager.cc |
@@ -87,7 +87,10 @@ void RenderViewHostManager::Init(BrowserContext* browser_context, |
GetControllerForRenderManager().GetSessionStorageNamespace( |
site_instance))); |
- // Keep track of renderer processes as they start to shut down. |
+ // Keep track of renderer processes as they start to shut down or are |
+ // crashed/killed. |
+ registrar_.Add(this, NOTIFICATION_RENDERER_PROCESS_CLOSED, |
+ NotificationService::AllSources()); |
registrar_.Add(this, NOTIFICATION_RENDERER_PROCESS_CLOSING, |
NotificationService::AllSources()); |
} |
@@ -397,6 +400,7 @@ void RenderViewHostManager::Observe( |
const NotificationSource& source, |
const NotificationDetails& details) { |
switch (type) { |
+ case NOTIFICATION_RENDERER_PROCESS_CLOSED: |
case NOTIFICATION_RENDERER_PROCESS_CLOSING: |
RendererProcessClosing( |
Source<RenderProcessHost>(source).ptr()); |