Index: chrome/browser/BUILD.gn |
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn |
index 9f3cdeb24dfc42323ac8cb50abb15fff679b73a6..a573d844497fb657bfaafbc03321cebbed85d1ce 100644 |
--- a/chrome/browser/BUILD.gn |
+++ b/chrome/browser/BUILD.gn |
@@ -3920,7 +3920,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. |
@@ -3931,6 +3930,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) { |