Index: components/sync_driver/BUILD.gn |
diff --git a/components/sync_driver/BUILD.gn b/components/sync_driver/BUILD.gn |
index 50a620eb5f7d4bae85fa552cbd529c47eb0312f7..cbb142847b4a68fc4014064c36254069803962a4 100644 |
--- a/components/sync_driver/BUILD.gn |
+++ b/components/sync_driver/BUILD.gn |
@@ -231,8 +231,6 @@ source_set("unit_tests") { |
"//base:prefs_test_support", |
"//base/test:test_support", |
"//components/os_crypt", |
- "//components/policy", |
- "//components/policy:policy_component", |
"//components/pref_registry:test_support", |
"//components/version_info", |
"//net:test_support", |
@@ -245,5 +243,9 @@ source_set("unit_tests") { |
if (enable_configuration_policy) { |
sources += [ "sync_policy_handler_unittest.cc" ] |
+ deps += [ |
+ "//components/policy", |
+ "//components/policy:policy_component", |
+ ] |
} |
} |