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

Unified Diff: chrome/browser/BUILD.gn

Issue 1681263003: metrics: Add leak detector controller in Chrome OS metrics system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove frame ptr flag, add thread checker, add #define flag locally (gn build only) Created 4 years, 10 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: chrome/browser/BUILD.gn
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 47f1ce028068b6598b3d4e305cd1e3be56a058fa..561696b799a3fa71910d113e062d810fe7b0943b 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/allocator.gni")
import("//build/config/chrome_build.gni")
import("//build/config/crypto.gni")
import("//build/config/features.gni")
@@ -596,6 +597,14 @@ source_set("browser") {
]
}
+ if (is_chromeos && enable_leak_detector) {
+ sources += [
+ "metrics/leak_detector_controller.cc",
+ "metrics/leak_detector_controller.h",
+ ]
+ deps += [ "//components/metrics:leak_detector" ]
+ }
+
if (use_cups) {
configs += [ "//printing:cups" ]
}

Powered by Google App Engine
This is Rietveld 408576698