summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics_service.h
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 00:18:24 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 00:18:24 +0000
commite73c0197733c2b354d4f1c30153e64951593602a (patch)
tree9ff5e77f9ed53e9d4583b7ef1ae178ec1c771b16 /chrome/browser/metrics_service.h
parentcdcd319904e1ef4323a98bf52d3ae8f7ae726c09 (diff)
downloadchromium_src-e73c0197733c2b354d4f1c30153e64951593602a.zip
chromium_src-e73c0197733c2b354d4f1c30153e64951593602a.tar.gz
chromium_src-e73c0197733c2b354d4f1c30153e64951593602a.tar.bz2
Add a couple of metrics to help us quantify two cases that can prevent us to get crash reports.
- Added env_vars to exe project instead of keep duplicating the strings. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics_service.h')
-rw-r--r--chrome/browser/metrics_service.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/metrics_service.h b/chrome/browser/metrics_service.h
index dc65d45..4524bc6 100644
--- a/chrome/browser/metrics_service.h
+++ b/chrome/browser/metrics_service.h
@@ -116,6 +116,14 @@ class MetricsService : public NotificationObserver,
// that session end was successful.
void RecordCompletedSessionEnd();
+ // Saves in the preferences if the crash report registration was successful.
+ // This count is eventually send via UMA logs.
+ void RecordBreakpadRegistration(bool success);
+
+ // Saves in the preferences if the browser is running under a debugger.
+ // This count is eventually send via UMA logs.
+ void RecordBreakpadHasDebugger(bool has_debugger);
+
// Callback to let us knew that the plugin list is warmed up.
void OnGetPluginListTaskComplete();
@@ -226,6 +234,9 @@ class MetricsService : public NotificationObserver,
const NotificationSource& source,
const NotificationDetails& details);
+ // Reads, increments and then sets the specified integer preference.
+ void IncrementPrefValue(const wchar_t* path);
+
// Records a renderer process crash.
void LogRendererCrash();