Index: chrome/common/BUILD.gn |
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn |
index 511f736213c5ef452782eb2b54d05b10a1ad9efb..d1cc2cd4242ee4cded521cb273dec68414ca678d 100644 |
--- a/chrome/common/BUILD.gn |
+++ b/chrome/common/BUILD.gn |
@@ -89,7 +89,6 @@ |
"//components/nacl/common:switches", |
"//components/offline_pages:switches", |
"//components/omnibox/common", |
- "//components/policy", |
"//components/policy:policy_component_common", |
"//components/prefs", |
"//components/strings", |
@@ -272,6 +271,9 @@ |
if (!enable_webrtc) { |
sources -= [ "media/webrtc_logging_messages.h" ] |
} |
+ if (enable_configuration_policy) { |
+ public_deps += [ "//components/policy" ] |
+ } |
if (safe_browsing_mode == 1) { |
sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |