| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 //------------------------------------------------------------------------------ | 7 //------------------------------------------------------------------------------ |
| 8 // Description of the life cycle of a instance of MetricsService. | 8 // Description of the life cycle of a instance of MetricsService. |
| 9 // | 9 // |
| 10 // OVERVIEW | 10 // OVERVIEW |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 break; | 603 break; |
| 604 | 604 |
| 605 case NotificationType::LOAD_START: | 605 case NotificationType::LOAD_START: |
| 606 LogLoadStarted(); | 606 LogLoadStarted(); |
| 607 break; | 607 break; |
| 608 | 608 |
| 609 case NotificationType::RENDERER_PROCESS_CLOSED: | 609 case NotificationType::RENDERER_PROCESS_CLOSED: |
| 610 { | 610 { |
| 611 RenderProcessHost::RendererClosedDetails* process_details = | 611 RenderProcessHost::RendererClosedDetails* process_details = |
| 612 Details<RenderProcessHost::RendererClosedDetails>(details).ptr(); | 612 Details<RenderProcessHost::RendererClosedDetails>(details).ptr(); |
| 613 if (process_details->did_crash) { | 613 if (process_details->status == |
| 614 base::TERMINATION_STATUS_PROCESS_CRASHED) { |
| 614 if (process_details->was_extension_renderer) { | 615 if (process_details->was_extension_renderer) { |
| 615 LogExtensionRendererCrash(); | 616 LogExtensionRendererCrash(); |
| 616 } else { | 617 } else { |
| 617 LogRendererCrash(); | 618 LogRendererCrash(); |
| 618 } | 619 } |
| 619 } | 620 } |
| 620 } | 621 } |
| 621 break; | 622 break; |
| 622 | 623 |
| 623 case NotificationType::RENDERER_PROCESS_HANG: | 624 case NotificationType::RENDERER_PROCESS_HANG: |
| (...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 thread_id = PlatformThread::CurrentId(); | 1907 thread_id = PlatformThread::CurrentId(); |
| 1907 return PlatformThread::CurrentId() == thread_id; | 1908 return PlatformThread::CurrentId() == thread_id; |
| 1908 } | 1909 } |
| 1909 | 1910 |
| 1910 #if defined(OS_CHROMEOS) | 1911 #if defined(OS_CHROMEOS) |
| 1911 void MetricsService::StartExternalMetrics() { | 1912 void MetricsService::StartExternalMetrics() { |
| 1912 external_metrics_ = new chromeos::ExternalMetrics; | 1913 external_metrics_ = new chromeos::ExternalMetrics; |
| 1913 external_metrics_->Start(); | 1914 external_metrics_->Start(); |
| 1914 } | 1915 } |
| 1915 #endif | 1916 #endif |
| OLD | NEW |