summaryrefslogtreecommitdiffstats
path: root/chrome_frame/crash_reporting
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-11 02:23:44 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-11 02:23:44 +0000
commit897b2627d88109e5280e20b6658d702b43468617 (patch)
tree76271ef33d000294ba9ce7b6d2b6e1aec94da610 /chrome_frame/crash_reporting
parent943d8120c51e2ed0146d85a15298d7fa30f316e0 (diff)
downloadchromium_src-897b2627d88109e5280e20b6658d702b43468617.zip
chromium_src-897b2627d88109e5280e20b6658d702b43468617.tar.gz
chromium_src-897b2627d88109e5280e20b6658d702b43468617.tar.bz2
Add support for uploading UMA metrics data from ChromeFrame. Added support for tracking chrome frame crash metrics via
2 new counters which track successful navigations and crashes. These counters are persisted in the registry under HKCU\Software\Google\ChromeFrameMetrics. Any other histogram data like AutomationServer launch time, IE versions etc are simply dropped if IE is shutdown before they are sent out. The metrics data is uploaded on similar lines as Chrome. Bug=46057 Review URL: http://codereview.chromium.org/2714003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/crash_reporting')
-rw-r--r--chrome_frame/crash_reporting/crash_report.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome_frame/crash_reporting/crash_report.cc b/chrome_frame/crash_reporting/crash_report.cc
index 4589bab..f821320 100644
--- a/chrome_frame/crash_reporting/crash_report.cc
+++ b/chrome_frame/crash_reporting/crash_report.cc
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/lock.h"
#include "breakpad/src/client/windows/handler/exception_handler.h"
+#include "chrome_frame/crash_metrics.h"
// TODO(joshia): factor out common code with chrome used for crash reporting
const wchar_t kGoogleUpdatePipeName[] = L"\\\\.\\pipe\\GoogleCrashServices\\";
@@ -172,6 +173,8 @@ bool ShutdownVectoredCrashReporting() {
bool WriteMinidumpForException(EXCEPTION_POINTERS* p) {
AutoLock lock(g_breakpad_lock);
+ CrashMetricsReporter::GetInstance()->IncrementMetric(
+ CrashMetricsReporter::CRASH_COUNT);
bool success = false;
if (g_breakpad) {
success = g_breakpad->WriteMinidumpForException(p);