Index: chrome/browser/metrics/metrics_log.cc |
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc |
index 49d5fd55cbae291d62c9b9e55f3022f758de76af..612518fcad170c1b76424cd0e705058feb41e117 100644 |
--- a/chrome/browser/metrics/metrics_log.cc |
+++ b/chrome/browser/metrics/metrics_log.cc |
@@ -543,34 +543,10 @@ void MetricsLog::WriteRealtimeStabilityAttributes( |
// Update the stats which are critical for real-time stability monitoring. |
// Since these are "optional," only list ones that are non-zero, as the counts |
// are aggregated (summed) server side. |
- |
SystemProfileProto::Stability* stability = |
uma_proto()->mutable_system_profile()->mutable_stability(); |
- int count = pref->GetInteger(prefs::kStabilityPageLoadCount); |
- if (count) { |
- stability->set_page_load_count(count); |
- pref->SetInteger(prefs::kStabilityPageLoadCount, 0); |
- } |
- |
- count = pref->GetInteger(prefs::kStabilityRendererCrashCount); |
- if (count) { |
- stability->set_renderer_crash_count(count); |
- pref->SetInteger(prefs::kStabilityRendererCrashCount, 0); |
- } |
- |
- count = pref->GetInteger(prefs::kStabilityExtensionRendererCrashCount); |
- if (count) { |
- stability->set_extension_renderer_crash_count(count); |
- pref->SetInteger(prefs::kStabilityExtensionRendererCrashCount, 0); |
- } |
- |
- count = pref->GetInteger(prefs::kStabilityRendererHangCount); |
- if (count) { |
- stability->set_renderer_hang_count(count); |
- pref->SetInteger(prefs::kStabilityRendererHangCount, 0); |
- } |
- count = pref->GetInteger(prefs::kStabilityChildProcessCrashCount); |
+ int count = pref->GetInteger(prefs::kStabilityChildProcessCrashCount); |
if (count) { |
stability->set_child_process_crash_count(count); |
pref->SetInteger(prefs::kStabilityChildProcessCrashCount, 0); |