Index: components/policy/core/common/BUILD.gn |
diff --git a/components/policy/core/common/BUILD.gn b/components/policy/core/common/BUILD.gn |
index 8e64691835cd639e1f6dc1dc04c2ec1566a339ff..c920da728ccd560cbcec1a9854ca538192162764 100644 |
--- a/components/policy/core/common/BUILD.gn |
+++ b/components/policy/core/common/BUILD.gn |
@@ -260,8 +260,10 @@ source_set("unit_tests") { |
} |
deps = [ |
- "//components/policy:policy_component_test_support", |
"//testing/gmock", |
"//testing/gtest", |
] |
+ if (enable_configuration_policy) { |
+ deps += [ "//components/policy:policy_component_test_support" ] |
+ } |
} |