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

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

Issue 1905793002: Enable Runtime Memory Leak Detector on x86_64 only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/chromeos_metrics_provider.cc
diff --git a/chrome/browser/metrics/chromeos_metrics_provider.cc b/chrome/browser/metrics/chromeos_metrics_provider.cc
index baa8917d0c4e4af47aa4864a03d1984ea1a5477c..68d84c27a8bf54e17a755d25b0002dcea1f7e46c 100644
--- a/chrome/browser/metrics/chromeos_metrics_provider.cc
+++ b/chrome/browser/metrics/chromeos_metrics_provider.cc
@@ -145,9 +145,13 @@ ChromeOSMetricsProvider::GetEnrollmentStatus() {
void ChromeOSMetricsProvider::Init() {
perf_provider_.Init();
+#if defined(ARCH_CPU_X86_64)
+ // Currently, the runtime memory leak detector is only supported on x86_64
+ // systems.
if (base::FeatureList::IsEnabled(features::kRuntimeMemoryLeakDetector)) {
leak_detector_controller_.reset(new metrics::LeakDetectorController);
}
+#endif
}
void ChromeOSMetricsProvider::OnDidCreateMetricsLog() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698