Index: chrome/browser/BUILD.gn |
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn |
index 48269a2f71e9522ce682c6ba7bf8e9f8223a4e97..349f5cd6a67d1b045d8d957ebb478b8a43abdfb7 100644 |
--- a/chrome/browser/BUILD.gn |
+++ b/chrome/browser/BUILD.gn |
@@ -3922,7 +3922,6 @@ grit("resources") { |
deps = [ |
":chrome_internal_resources_gen", |
- "//chrome/browser/resources/safe_browsing:make_file_types_protobuf", |
# Depend only on the generated mojo bindings since we read the .mojom.js |
# file, rather than the whole mojo target which will link the C++ bindings. |
@@ -3933,6 +3932,11 @@ grit("resources") { |
"//url/mojo:url_mojom_gurl__generator", |
"//url/mojo:url_mojom_origin__generator", |
] |
+ |
+ if (safe_browsing_mode > 0) { |
+ deps += |
+ [ "//chrome/browser/resources/safe_browsing:make_file_types_protobuf" ] |
+ } |
} |
if (is_chrome_branded) { |