Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index f92d4ba0cfdf3932ea7e0f41cf3367c70d5b5db2..36843a1932d9f9754596bea3b7000d93100c7f8c 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -1033,7 +1033,9 @@ template("compile_java") { |
} |
_enable_errorprone = use_errorprone_java_compiler |
- if (defined(invoker.enable_errorprone)) { |
+ if (!_chromium_code) { |
+ _enable_errorprone = false |
+ } else if (defined(invoker.enable_errorprone)) { |
_enable_errorprone = invoker.enable_errorprone |
} |