Index: chrome/browser/metrics/metrics_log.cc |
=================================================================== |
--- chrome/browser/metrics/metrics_log.cc (revision 69359) |
+++ chrome/browser/metrics/metrics_log.cc (working copy) |
@@ -231,6 +231,32 @@ |
pref->SetInteger(prefs::kStabilityChildProcessCrashCount, 0); |
} |
+#if defined(OS_CHROMEOS) |
+ count = pref->GetInteger(prefs::kStabilityOtherUserCrashCount); |
petkov
2011/01/06 18:50:36
did you forget to add the file that declares/defin
kmixter1
2011/01/14 00:07:02
Done.
|
+ if (count) { |
+ // TODO(kmixter): Write attribute once log server supports it. |
+ // WriteIntAttribute("otherusercrashcount", count); |
+ LOG(WARNING) << "Would write otherusercrashcount=" << count; |
petkov
2011/01/06 18:50:36
you'll remove these logs eventually, i assume.
kmixter1
2011/01/14 00:07:02
Yes, until the log server can handle these additio
|
+ pref->SetInteger(prefs::kStabilityOtherUserCrashCount, 0); |
+ } |
+ |
+ count = pref->GetInteger(prefs::kStabilityKernelCrashCount); |
+ if (count) { |
+ // TODO(kmixter): Write attribute once log server supports it. |
+ // WriteIntAttribute("kernelcrashcount", count); |
+ LOG(WARNING) << "Would write kernelcrashcount=" << count; |
+ pref->SetInteger(prefs::kStabilityKernelCrashCount, 0); |
+ } |
+ |
+ count = pref->GetInteger(prefs::kStabilitySystemUncleanShutdownCount); |
+ if (count) { |
+ // TODO(kmixter): Write attribute once log server supports it. |
+ // WriteIntAttribute("systemuncleanshutdowns", count); |
+ LOG(WARNING) << "Would write systemuncleanshutdowns=" << count; |
+ pref->SetInteger(prefs::kStabilitySystemUncleanShutdownCount, 0); |
+ } |
+#endif // OS_CHROMEOS |
+ |
int64 recent_duration = GetIncrementalUptime(pref); |
if (recent_duration) |
WriteInt64Attribute("uptimesec", recent_duration); |