gn2bp: Remove unnecessary hack
Now the gn.java_sources contain enough java files
Test: ./update_results.sh
Change-Id: Ic1c053b833d68d36469ac127447d7aafe5828fa2
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 70e4466..ef6b014 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -1183,14 +1183,6 @@
module.srcs.update([gn_utils.label_to_path(source)
for source in gn.java_sources if source not in deny_list])
- # TODO: Remove hardcoded file addition to srcs
- # jni_registration_generator.py generates empty .h file if native methods are not found in the
- # java files. But android:cronet depends on `RegisterNonMainDexNatives` which is in the template
- # of .h file. To make script generate non empty .h file, adding java file which contains native
- # method. Once all the required java files are added to the srcs, this can be removed.
- module.srcs.update([
- "components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequest.java"])
-
def create_blueprint_for_targets(gn, targets):
"""Generate a blueprint for a list of GN targets."""
blueprint = Blueprint()