diff options
Diffstat (limited to 'chrome/browser/metrics/metrics_service.cc')
-rw-r--r-- | chrome/browser/metrics/metrics_service.cc | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc index ad24a11..38833a0 100644 --- a/chrome/browser/metrics/metrics_service.cc +++ b/chrome/browser/metrics/metrics_service.cc @@ -481,7 +481,7 @@ void MetricsService::SetRecording(bool enabled) { NotificationService::AllSources()); registrar_.Add(this, NotificationType::LOAD_STOP, NotificationService::AllSources()); - registrar_.Add(this, NotificationType::RENDERER_PROCESS_CLOSED, + registrar_.Add(this, NotificationType::RENDERER_PROCESS_CRASHED, NotificationService::AllSources()); registrar_.Add(this, NotificationType::RENDERER_PROCESS_HANG, NotificationService::AllSources()); @@ -557,17 +557,13 @@ void MetricsService::Observe(NotificationType type, LogLoadStarted(); break; - case NotificationType::RENDERER_PROCESS_CLOSED: + case NotificationType::RENDERER_PROCESS_CRASHED: { - RenderProcessHost::RendererClosedDetails* process_details = - Details<RenderProcessHost::RendererClosedDetails>(details).ptr(); - if (process_details->did_crash) { - if (process_details->was_extension_renderer) { - LogExtensionRendererCrash(); - } else { - LogRendererCrash(); - } - } + // The details are whether it is an extension process. + if (*Details<bool>(details).ptr()) + LogExtensionRendererCrash(); + else + LogRendererCrash(); } break; |