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

Unified Diff: components/arc/metrics/arc_metrics_service.cc

Issue 2197753002: Move OomKillsMonitor from a single-threaded SequencedWorkerPool to a non-joinable thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a0_b1_nonjoinable_thread
Patch Set: Created 4 years, 5 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: components/arc/metrics/arc_metrics_service.cc
diff --git a/components/arc/metrics/arc_metrics_service.cc b/components/arc/metrics/arc_metrics_service.cc
index 38e59d7879aa9a34a6a423ce92a79c477616808c..5368a2ce3480e163a3a284612329cbe1307fa810 100644
--- a/components/arc/metrics/arc_metrics_service.cc
+++ b/components/arc/metrics/arc_metrics_service.cc
@@ -31,7 +31,7 @@ ArcMetricsService::ArcMetricsService(ArcBridgeService* bridge_service)
weak_ptr_factory_(this) {
arc_bridge_service()->metrics()->AddObserver(this);
arc_bridge_service()->process()->AddObserver(&process_observer_);
- oom_kills_monitor_.Start();
+ oom_kills_monitor_handle_ = OomKillsMonitor::StartMonitoring();
Luis Héctor Chávez 2016/07/29 21:48:45 Can this be initialized in the initializer list?
gab 2016/08/01 15:15:02 Done.
}
ArcMetricsService::~ArcMetricsService() {

Powered by Google App Engine
This is Rietveld 408576698