| 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 #include "chrome_frame/crash_metrics.h" | 5 #include "chrome_frame/crash_reporting/crash_metrics.h" |
| 6 | 6 |
| 7 #include "base/histogram.h" | 7 #include "base/histogram.h" |
| 8 #include "base/registry.h" | 8 #include "base/registry.h" |
| 9 #include "chrome_frame/utils.h" | 9 #include "chrome_frame/utils.h" |
| 10 | 10 |
| 11 static const wchar_t kChromeFrameMetricsKey[] = | 11 static const wchar_t kChromeFrameMetricsKey[] = |
| 12 L"Software\\Google\\ChromeFrameMetrics"; | 12 L"Software\\Google\\ChromeFrameMetrics"; |
| 13 | 13 |
| 14 base::LazyInstance<CrashMetricsReporter> | 14 base::LazyInstance<CrashMetricsReporter> |
| 15 g_crash_metrics_instance_(base::LINKER_INITIALIZED); | 15 g_crash_metrics_instance_(base::LINKER_INITIALIZED); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 int crash_count = GetMetric(CRASH_COUNT); | 85 int crash_count = GetMetric(CRASH_COUNT); |
| 86 if (crash_count > 0) { | 86 if (crash_count > 0) { |
| 87 THREAD_SAFE_UMA_HISTOGRAM_COUNTS("ChromeFrame.HostCrashCount", | 87 THREAD_SAFE_UMA_HISTOGRAM_COUNTS("ChromeFrame.HostCrashCount", |
| 88 crash_count); | 88 crash_count); |
| 89 SetMetric(CRASH_COUNT, 0); | 89 SetMetric(CRASH_COUNT, 0); |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 | 92 |
| OLD | NEW |