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

Unified Diff: chrome/browser/metrics/metrics_log.cc

Issue 289283011: Introduce ChromeStabilityMetricsProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 7 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
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..19fda813b9246a2819af03cc6881b5dd6f26b073 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -546,31 +546,8 @@ void MetricsLog::WriteRealtimeStabilityAttributes(
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);

Powered by Google App Engine
This is Rietveld 408576698