diff options
Diffstat (limited to 'chrome_frame/crash_reporting/crash_metrics.cc')
-rw-r--r-- | chrome_frame/crash_reporting/crash_metrics.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome_frame/crash_reporting/crash_metrics.cc b/chrome_frame/crash_reporting/crash_metrics.cc index e5d8fb5..2759e5d 100644 --- a/chrome_frame/crash_reporting/crash_metrics.cc +++ b/chrome_frame/crash_reporting/crash_metrics.cc @@ -19,6 +19,7 @@ wchar_t* CrashMetricsReporter::g_metric_names[LAST_METRIC] = { L"crashcount", L"chrome_frame_navigationcount", L"sessionid", + L"channel_error", }; CrashMetricsReporter* CrashMetricsReporter::GetInstance() { @@ -88,5 +89,11 @@ void CrashMetricsReporter::RecordCrashMetrics() { crash_count); SetMetric(CRASH_COUNT, 0); } -} + int channel_error_count = GetMetric(CHANNEL_ERROR_COUNT); + if (channel_error_count > 0) { + THREAD_SAFE_UMA_HISTOGRAM_COUNTS("ChromeFrame.ChannelErrorCount", + channel_error_count); + SetMetric(CHANNEL_ERROR_COUNT, 0); + } +} |