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

Unified Diff: components/metrics/metrics_service.cc

Issue 2531123002: Record MetricsService's execution phase to the stability file (Closed)
Patch Set: Created 4 years, 1 month 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: components/metrics/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index 5c9448987ab9b42348f2ed6a8b0743936542dacb..d4e37dfb107a4b7709682175482ed6b1824bb55c 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -161,6 +161,10 @@
#include "components/prefs/pref_service.h"
#include "components/variations/entropy_provider.h"
+#if defined(OS_WIN)
+#include "components/browser_watcher/stability_debugging_win.h"
bcwhite 2016/12/01 16:35:20 Can you use a generic stability_debugging.h with p
manzagop (departed) 2016/12/05 15:44:05 Done.
+#endif // defined(OS_WIN)
+
namespace metrics {
namespace {
@@ -495,6 +499,10 @@ void MetricsService::SetExecutionPhase(ExecutionPhase execution_phase,
PrefService* local_state) {
execution_phase_ = execution_phase;
local_state->SetInteger(prefs::kStabilityExecutionPhase, execution_phase_);
+#if defined(OS_WIN)
+ browser_watcher::SetStabilityDataInt(prefs::kStabilityExecutionPhase,
+ execution_phase_);
+#endif // defined(OS_WIN)
}
void MetricsService::RecordBreakpadRegistration(bool success) {
« components/browser_watcher/stability_debugging_win.cc ('K') | « components/metrics/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698