Index: components/metrics/BUILD.gn |
diff --git a/components/metrics/BUILD.gn b/components/metrics/BUILD.gn |
index 95dfabbb9ad7dd92402ea8214fbe8b9b60e494e1..8e312c746583e42f7ae434a95e85bb11ca242029 100644 |
--- a/components/metrics/BUILD.gn |
+++ b/components/metrics/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//mojo/public/tools/bindings/mojom.gni") |
+ |
declare_args() { |
# Overrides os name in uma metrics log to "Blimp". |
metrics_use_blimp = false |
@@ -83,6 +85,7 @@ static_library("metrics") { |
"//components/metrics/proto", |
] |
deps = [ |
+ ":mojo_bindings", |
"//base", |
"//base:base_static", |
"//components/prefs", |
@@ -109,6 +112,20 @@ static_library("metrics") { |
} |
} |
+mojom("mojo_bindings") { |
+ sources = [ |
+ "call_stack_profile_collector.mojom", |
+ ] |
+ |
+ deps = [ |
+ "//mojo/common:common_custom_types", |
+ ] |
+ |
+ public_deps = [ |
+ "//skia/public/interfaces", |
+ ] |
+} |
+ |
if (!is_ios) { |
# GYP version: components/metrics.gypi:metrics_gpu |
static_library("gpu") { |
@@ -275,10 +292,23 @@ if (is_linux) { |
} |
} |
+mojom("mojo_test_bindings") { |
+ sources = [ |
+ "call_stack_profile_collector_test.mojom", |
+ ] |
+ |
+ deps = [ |
+ ":mojo_bindings", |
+ "//mojo/common:common_custom_types", |
+ ] |
+} |
+ |
source_set("unit_tests") { |
testonly = true |
sources = [ |
+ "call_stack_profile_collector_test.mojom", |
"call_stack_profile_metrics_provider_unittest.cc", |
+ "call_stack_profile_struct_traits_unittest.cc", |
"cloned_install_detector_unittest.cc", |
"daily_event_unittest.cc", |
"data_use_tracker_unittest.cc", |
@@ -301,6 +331,7 @@ source_set("unit_tests") { |
deps = [ |
":metrics", |
+ ":mojo_test_bindings", |
":net", |
":profiler", |
":test_support", |