summaryrefslogtreecommitdiffstats
path: root/components/ownership
diff options
context:
space:
mode:
authortmoniuszko <tmoniuszko@opera.com>2015-02-26 08:22:04 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-26 16:23:25 +0000
commitfe85385d68ca39e48ee37dd7fe952c17b2440b6f (patch)
tree0484e35df92732743f9553b6eead92e1cdd449a5 /components/ownership
parent81a235afe26e84419592a922b81102f5eb4751a4 (diff)
downloadchromium_src-fe85385d68ca39e48ee37dd7fe952c17b2440b6f.zip
chromium_src-fe85385d68ca39e48ee37dd7fe952c17b2440b6f.tar.gz
chromium_src-fe85385d68ca39e48ee37dd7fe952c17b2440b6f.tar.bz2
Fix dependencies on //components/policy in gn files
BUG= Review URL: https://codereview.chromium.org/952163002 Cr-Commit-Position: refs/heads/master@{#318246}
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") {