gn2bp: Add get_tool_files to the VersionSanitizer

Test: ./update_results.sh
Change-Id: I5a7b8ea30f7bb4ab614b4037953bb60f9eff2e2a
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 66a2e3e..9ba1cac 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -883,6 +883,12 @@
     self._set_value_arg('-e', "'%s'" % self._get_value_arg('-e'))
     super()._sanitize_args()
 
+  def get_tool_files(self):
+    tool_files = super().get_tool_files()
+    # android_chrome_version.py is not specified in anywhere but version.py imports this file
+    tool_files.add('build/util/android_chrome_version.py')
+    return tool_files
+
 class JavaCppEnumSanitizer(BaseActionSanitizer):
   def _sanitize_args(self):
     self._update_all_args(self._sanitize_filepath_with_location_tag)
@@ -966,9 +972,6 @@
     # do not handle. Remove them.
     # TODO: find a better way to do this.
     target.deps.clear()
-  elif target.script == "//build/util/version.py":
-    # android_chrome_version.py is not specified in anywhere but version.py imports this file
-    module.tool_files.add('build/util/android_chrome_version.py')
 
   blueprint.add_module(module)
   return module