Index: remoting/host/BUILD.gn |
diff --git a/remoting/host/BUILD.gn b/remoting/host/BUILD.gn |
index 57a1f599140ab5ba302740eca6aa17853ce06c57..7d171a8a619e0c69aaba087eff388eef248a22f6 100644 |
--- a/remoting/host/BUILD.gn |
+++ b/remoting/host/BUILD.gn |
@@ -439,7 +439,6 @@ if (is_mac) { # TODO(GYP) Mac build of remoting host. |
deps = [ |
"//base", |
"//base:i18n", |
- "//components/policy", |
"//components/policy:policy_component_common", |
"//net", |
"//remoting/base", |
@@ -448,6 +447,10 @@ if (is_mac) { # TODO(GYP) Mac build of remoting host. |
"//third_party/webrtc/modules/desktop_capture", |
] |
+ if (enable_configuration_policy) { |
+ deps += [ "//components/policy" ] |
+ } |
+ |
if (enable_webrtc) { |
deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
} |