Index: components/startup_metric_utils/browser/BUILD.gn |
diff --git a/components/startup_metric_utils/browser/BUILD.gn b/components/startup_metric_utils/browser/BUILD.gn |
index 258e2106499354b071c22df473727e0a1e51d4a2..8f44817680010c74ec14a0b9b57ac575b6bc6043 100644 |
--- a/components/startup_metric_utils/browser/BUILD.gn |
+++ b/components/startup_metric_utils/browser/BUILD.gn |
@@ -2,7 +2,20 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-source_set("browser") { |
+# We have 2 separate targets because //components/html_viewer requires :lib, |
+# but has symbols that conflict with mojo symbols that :message_filter_lib |
+# indirectly depends on. |
+ |
+group("browser") { |
+ testonly = true |
+ |
+ deps = [ |
+ ":lib", |
+ ":message_filter_lib", |
+ ] |
+} |
+ |
+source_set("lib") { |
sources = [ |
"startup_metric_utils.cc", |
"startup_metric_utils.h", |
@@ -12,3 +25,17 @@ source_set("browser") { |
"//base", |
] |
} |
+ |
+source_set("message_filter_lib") { |
+ sources = [ |
+ "startup_metric_message_filter.cc", |
+ "startup_metric_message_filter.h", |
+ ] |
+ |
+ deps = [ |
+ ":lib", |
+ "//base", |
+ "//components/startup_metric_utils/common", |
+ "//content/public/browser", |
+ ] |
+} |