Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: components/ownership/BUILD.gn

Issue 952163002: Fix dependencies on //components/policy in gn files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing import Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ownership/BUILD.gn
diff --git a/components/ownership/BUILD.gn b/components/ownership/BUILD.gn
index 5acce97af29b84a9fd28e25e1a24d6f94d7052ae..1bca927b1e0e7539949095b4b7023b62fe908593 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") {
« no previous file with comments | « components/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698