Descriptionjni: Forbid inappropriate JNI parameter conversions.
Don't allow JavaParamRefs to be used to construct ScopedJavaLocalRefs.
This leads to incorrect reference handling behaviour, since parameters
are not allowed to be deleted. Instead code should simply pass the
JavaParamRef by reference; functions should be taking "const JavaRef&"
for input which is compatible.
Fix the cases in the code where this conversion is currently being
relied upon.
BUG=506850
Committed: https://crrev.com/a8dd7a4e29d91d91c2b5e3e97062f5945737c050
Cr-Commit-Position: refs/heads/master@{#347923}
Patch Set 1 #Patch Set 2 : Fix GN-only mojo, and chromecast #
Messages
Total messages: 17 (4 generated)
|