summaryrefslogtreecommitdiffstats
path: root/components
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
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')
-rw-r--r--components/BUILD.gn4
-rw-r--r--components/ownership/BUILD.gn7
2 files changed, 10 insertions, 1 deletions
diff --git a/components/BUILD.gn b/components/BUILD.gn
index 9740999..450fe0e 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -114,6 +114,10 @@ group("all_components") {
"//components/wifi_sync",
]
+ if (!enable_configuration_policy) {
+ deps -= [ "//components/policy" ]
+ }
+
if (!is_win && !is_mac) {
deps -= [ "//components/wifi" ]
}
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") {