Index: remoting/BUILD.gn |
diff --git a/remoting/BUILD.gn b/remoting/BUILD.gn |
index 2fcdf6487e550c8be536748adb299ddbfbb3acb3..6c5ffac5b2d788a6f6968c571a40bab4913205d3 100644 |
--- a/remoting/BUILD.gn |
+++ b/remoting/BUILD.gn |
@@ -61,7 +61,6 @@ source_set("test_support") { |
deps = [ |
"//base", |
- "//components/policy:test_support", |
"//net", |
"//remoting/base", |
"//remoting/client", |
@@ -72,6 +71,10 @@ source_set("test_support") { |
"//testing/gtest", |
] |
+ if (enable_configuration_policy) { |
+ deps += [ "//components/policy:test_support" ] |
+ } |
+ |
if (enable_remoting_host) { |
deps += [ "//remoting/host:test_support" ] |
} |