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

Unified Diff: components/metrics/BUILD.gn

Issue 2687583002: Add support for single sample metrics. (Closed)
Patch Set: Address 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 | « base/metrics/single_sample_metrics_unittest.cc ('k') | components/metrics/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/BUILD.gn
diff --git a/components/metrics/BUILD.gn b/components/metrics/BUILD.gn
index cde2219d52612c4f4183cd9c86e30193361c762e..f2456a1b50c903cd973ba6d0fba67f81f64b4960 100644
--- a/components/metrics/BUILD.gn
+++ b/components/metrics/BUILD.gn
@@ -91,8 +91,11 @@ static_library("metrics") {
]
public_deps = [
+ ":single_sample_metrics",
"//components/metrics/proto",
+ "//components/metrics/public/interfaces:single_sample_metrics_mojo_bindings",
]
+
deps = [
":call_stack_profile_params",
"//base",
@@ -248,6 +251,22 @@ if (!is_ios) {
}
}
+source_set("single_sample_metrics") {
+ sources = [
+ "single_sample_metrics.cc",
+ "single_sample_metrics.h",
+ "single_sample_metrics_factory_impl.cc",
+ "single_sample_metrics_factory_impl.h",
+ ]
+
+ deps = [
+ "//components/metrics/public/interfaces:single_sample_metrics_mojo_bindings",
+ "//mojo/public/cpp/bindings",
+ "//services/service_manager/public/cpp",
+ "//services/service_manager/public/interfaces",
+ ]
+}
+
source_set("call_stack_profile_params") {
sources = [
"call_stack_profile_params.cc",
@@ -335,6 +354,7 @@ source_set("unit_tests") {
"persisted_logs_unittest.cc",
"profiler/profiler_metrics_provider_unittest.cc",
"profiler/tracking_synchronizer_unittest.cc",
+ "single_sample_metrics_factory_impl_unittest.cc",
"stability_metrics_helper_unittest.cc",
"stability_metrics_provider_unittest.cc",
"ui/screen_info_metrics_provider_unittest.cc",
« no previous file with comments | « base/metrics/single_sample_metrics_unittest.cc ('k') | components/metrics/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698