Index: components/policy/core/browser/BUILD.gn |
diff --git a/components/policy/core/browser/BUILD.gn b/components/policy/core/browser/BUILD.gn |
index d6441ad1cbb8dc52f20a21ddf02d89532d0062af..f58d53289eb82e304d6151f6e9f38bebdf7e17c9 100644 |
--- a/components/policy/core/browser/BUILD.gn |
+++ b/components/policy/core/browser/BUILD.gn |
@@ -88,9 +88,11 @@ source_set("unit_tests") { |
"url_blacklist_policy_handler_unittest.cc", |
] |
deps = [ |
- "//components/policy:policy_component_test_support", |
"//components/url_formatter", |
"//testing/gmock", |
"//testing/gtest", |
] |
+ if (enable_configuration_policy) { |
+ deps += [ "//components/policy:policy_component_test_support" ] |
+ } |
} |