Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Side by Side Diff: chrome_frame/crash_reporting/crash_metrics.cc

Issue 2776010: Move the crash metrics to the crash reproting lib to avoid a back dependency ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome_frame/crash_reporting/crash_metrics.h ('k') | chrome_frame/crash_reporting/crash_report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698