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

Unified Diff: crash_reporter.cc

Issue 6138005: crash-reporter: Send systemwide stability information up to Chrome (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crash-reporter.git@master
Patch Set: Add reference to bug in todo Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crash_reporter.cc
diff --git a/crash_reporter.cc b/crash_reporter.cc
index 07dcd9c5c647b5120384ff9cac8e4cafd12bc0e9..c583dec7a931032f8736adddde6c9d2a956606f0 100644
--- a/crash_reporter.cc
+++ b/crash_reporter.cc
@@ -53,21 +53,30 @@ static bool TouchFile(const FilePath &file_path) {
}
static void CountKernelCrash() {
+ // TODO(kmixter): We can remove this histogram as part of
+ // crosbug.com/11163.
s_metrics_lib.SendEnumToUMA(std::string(kCrashCounterHistogram),
kCrashKindKernel,
kCrashKindMax);
+ s_metrics_lib.SendCrashToUMA("kernel");
}
static void CountUncleanShutdown() {
+ // TODO(kmixter): We can remove this histogram as part of
+ // crosbug.com/11163.
s_metrics_lib.SendEnumToUMA(std::string(kCrashCounterHistogram),
kCrashKindUncleanShutdown,
kCrashKindMax);
+ s_metrics_lib.SendCrashToUMA("uncleanshutdown");
}
static void CountUserCrash() {
+ // TODO(kmixter): We can remove this histogram as part of
+ // crosbug.com/11163.
s_metrics_lib.SendEnumToUMA(std::string(kCrashCounterHistogram),
kCrashKindUser,
kCrashKindMax);
+ s_metrics_lib.SendCrashToUMA("user");
std::string command = StringPrintf(
"/usr/bin/dbus-send --type=signal --system / \"%s\" &",
kUserCrashSignal);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698