Chromium Code Reviews| Index: crash_reporter.cc |
| diff --git a/crash_reporter.cc b/crash_reporter.cc |
| index 07dcd9c5c647b5120384ff9cac8e4cafd12bc0e9..3b478243c0b4b2784d4fd7fe2b66aaf182a664b6 100644 |
| --- a/crash_reporter.cc |
| +++ b/crash_reporter.cc |
| @@ -53,21 +53,31 @@ static bool TouchFile(const FilePath &file_path) { |
| } |
| static void CountKernelCrash() { |
| + // TODO(kmixter): We can remove this histogram once we have |
|
petkov
2011/01/10 18:51:41
File a cleanup issue?
|
| + // UMA stability data. |
| s_metrics_lib.SendEnumToUMA(std::string(kCrashCounterHistogram), |
| kCrashKindKernel, |
| kCrashKindMax); |
| + s_metrics_lib.SendCrashToUMA("kernel"); |
| } |
| static void CountUncleanShutdown() { |
| + // TODO(kmixter): We can remove this histogram once we have |
| + // UMA stability data. |
| s_metrics_lib.SendEnumToUMA(std::string(kCrashCounterHistogram), |
| kCrashKindUncleanShutdown, |
| kCrashKindMax); |
| + s_metrics_lib.SendCrashToUMA("uncleanshutdown"); |
| } |
| static void CountUserCrash() { |
| + // TODO(kmixter): We can remove this histogram once we have |
| + // UMA stability data, as well as the signalling to |
| + // metrics daemon. |
| 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); |