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

Unified Diff: components/browser_watcher/stability_debugging.cc

Issue 2861223003: Record keep alive registry's state in stability instrumentation (Closed)
Patch Set: Lighten ifdef comments 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/browser_watcher/stability_debugging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/stability_debugging.cc
diff --git a/components/browser_watcher/stability_debugging.cc b/components/browser_watcher/stability_debugging.cc
index d382485f750a8d0b065876981632b35dc0e0f37f..3c8cc6492928043dbe0de2306bef4581e992e044 100644
--- a/components/browser_watcher/stability_debugging.cc
+++ b/components/browser_watcher/stability_debugging.cc
@@ -8,6 +8,15 @@
namespace browser_watcher {
+void SetStabilityDataBool(base::StringPiece name, bool value) {
+ base::debug::GlobalActivityTracker* global_tracker =
+ base::debug::GlobalActivityTracker::Get();
+ if (!global_tracker)
+ return; // Activity tracking isn't enabled.
+
+ global_tracker->process_data().SetBool(name, value);
+}
+
void SetStabilityDataInt(base::StringPiece name, int64_t value) {
base::debug::GlobalActivityTracker* global_tracker =
base::debug::GlobalActivityTracker::Get();
« no previous file with comments | « components/browser_watcher/stability_debugging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698