Index: components/BUILD.gn |
diff --git a/components/BUILD.gn b/components/BUILD.gn |
index 7312e2807d312cdec9f9ba7c29cbf19a74fa1021..cd0ecf534f5f77db4de33ae85e16fcdae3f6e293 100644 |
--- a/components/BUILD.gn |
+++ b/components/BUILD.gn |
@@ -115,6 +115,10 @@ group("all_components") { |
"//components/wifi_sync", |
] |
+ if (!enable_configuration_policy) { |
+ deps -= [ "//components/policy" ] |
+ } |
+ |
if (!is_win && !is_mac) { |
deps -= [ "//components/wifi" ] |
} |