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

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

Issue 293393010: Move initial metrics gathering tasks out of MetricsService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes 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/chrome_stability_metrics_provider.cc
diff --git a/chrome/browser/metrics/chrome_stability_metrics_provider.cc b/chrome/browser/metrics/chrome_stability_metrics_provider.cc
index 0c9172911cb4b7fdbb3652b3948e62622c513b03..f39bbd46caf00447cdeff19043f1b62e28bbe866 100644
--- a/chrome/browser/metrics/chrome_stability_metrics_provider.cc
+++ b/chrome/browser/metrics/chrome_stability_metrics_provider.cc
@@ -98,6 +98,12 @@ void ChromeStabilityMetricsProvider::ProvideStabilityMetrics(
pref->SetInteger(prefs::kStabilityPageLoadCount, 0);
}
+ count = pref->GetInteger(prefs::kStabilityChildProcessCrashCount);
blundell 2014/05/27 15:55:49 This code should have been moved here when ChromeS
+ if (count) {
+ stability_proto->set_child_process_crash_count(count);
+ pref->SetInteger(prefs::kStabilityChildProcessCrashCount, 0);
+ }
+
count = pref->GetInteger(prefs::kStabilityRendererCrashCount);
if (count) {
stability_proto->set_renderer_crash_count(count);

Powered by Google App Engine
This is Rietveld 408576698