summaryrefslogtreecommitdiffstats
path: root/components/ownership
diff options
context:
space:
mode:
Diffstat (limited to 'components/ownership')
-rw-r--r--components/ownership/BUILD.gn7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/ownership/BUILD.gn b/components/ownership/BUILD.gn
index 5acce97..1bca927 100644
--- a/components/ownership/BUILD.gn
+++ b/components/ownership/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("//build/config/features.gni")
+
component("ownership") {
sources = [
"mock_owner_key_util.cc",
@@ -19,11 +21,14 @@ component("ownership") {
deps = [
"//base",
"//components/keyed_service/core",
- "//components/policy",
"//components/policy/proto",
"//components/policy:policy_component_common",
"//crypto",
]
+
+ if (enable_configuration_policy) {
+ deps += [ "//components/policy" ]
+ }
}
source_set("unit_tests") {