gn2bp: Add JavaCppFeatureSanitizer
Test: ./update_results.sh Change-Id: I0b9d47aa32c53225dc549d21cf39b41ce3fdaeae
This commit is contained in:
@@ -901,6 +901,9 @@ class MakeDafsaSanitizer(BaseActionSanitizer):
|
|||||||
# (e.g. registry_controlled_domain.cc)
|
# (e.g. registry_controlled_domain.cc)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
class JavaCppFeatureSanitizer(BaseActionSanitizer):
|
||||||
|
pass
|
||||||
|
|
||||||
def get_action_sanitizer(target, type):
|
def get_action_sanitizer(target, type):
|
||||||
if target.script == "//build/write_buildflag_header.py":
|
if target.script == "//build/write_buildflag_header.py":
|
||||||
return WriteBuildFlagHeaderSanitizer(target)
|
return WriteBuildFlagHeaderSanitizer(target)
|
||||||
@@ -919,6 +922,8 @@ def get_action_sanitizer(target, type):
|
|||||||
return JavaCppEnumSanitizer(target)
|
return JavaCppEnumSanitizer(target)
|
||||||
elif target.script == "//net/tools/dafsa/make_dafsa.py":
|
elif target.script == "//net/tools/dafsa/make_dafsa.py":
|
||||||
return MakeDafsaSanitizer(target)
|
return MakeDafsaSanitizer(target)
|
||||||
|
elif target.script == '//build/android/gyp/java_cpp_features.py':
|
||||||
|
return JavaCppFeatureSanitizer(target)
|
||||||
else:
|
else:
|
||||||
# TODO: throw exception here once all script hacks have been converted.
|
# TODO: throw exception here once all script hacks have been converted.
|
||||||
return BaseActionSanitizer(target)
|
return BaseActionSanitizer(target)
|
||||||
|
|||||||
Reference in New Issue
Block a user