Index: components/policy/proto/BUILD.gn |
diff --git a/components/policy/proto/BUILD.gn b/components/policy/proto/BUILD.gn |
index cc84042c5d9c98733e9c8897b45e7a42001d21ce..3b6a7b26fa57d155e52f40eac65b23482cb82c0b 100644 |
--- a/components/policy/proto/BUILD.gn |
+++ b/components/policy/proto/BUILD.gn |
@@ -4,7 +4,18 @@ |
import("//third_party/protobuf/proto_library.gni") |
-proto_library("proto") { |
+# The proto files need to be a component to avoid duplicate symbols the way the |
+# dependency structure is currently. Since proto_library generates a source |
+# set, here we link the result into a component. |
+component("proto") { |
+ public_deps = [ |
+ ":proto_internal", |
+ ] |
+} |
+ |
+proto_library("proto_internal") { |
+ visibility = [ ":proto" ] |
+ |
sources = [ |
"device_management_backend.proto", |
"policy_signing_key.proto", |