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

Unified Diff: components/metrics/execution_phase.cc

Issue 2860863003: Rework GetStabilityFileForProcess for use by Crashpad integration (Closed)
Patch Set: Address Mark's second round Created 3 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
« no previous file with comments | « components/metrics/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/execution_phase.cc
diff --git a/components/metrics/execution_phase.cc b/components/metrics/execution_phase.cc
index c37f05c594fed6bd08450ad36e4bc8166099f4f1..98f9aee136e00cf13568de6bb70619ffae6bccb5 100644
--- a/components/metrics/execution_phase.cc
+++ b/components/metrics/execution_phase.cc
@@ -4,6 +4,7 @@
#include "components/metrics/execution_phase.h"
+#include "build/build_config.h"
#include "components/browser_watcher/stability_data_names.h"
#include "components/browser_watcher/stability_debugging.h"
#include "components/metrics/metrics_pref_names.h"
@@ -34,9 +35,11 @@ void ExecutionPhaseManager::SetExecutionPhase(ExecutionPhase execution_phase) {
execution_phase_ = execution_phase;
local_state_->SetInteger(prefs::kStabilityExecutionPhase,
static_cast<int>(execution_phase_));
+#if defined(OS_WIN)
browser_watcher::SetStabilityDataInt(
browser_watcher::kStabilityExecutionPhase,
static_cast<int>(execution_phase_));
+#endif // defined(OS_WIN)
}
ExecutionPhase ExecutionPhaseManager::GetExecutionPhase() {
« no previous file with comments | « components/metrics/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698