jni: Pass method parameters as JavaParamRef in base.

Pass all object parameters to JNI methods in JavaParamRef<> wrappers.
This matches previous changes made to do this for JNI non-method
functions.

Also tidy up the code in sample_for_tests to make it easier to use as an
example.

BUG=506850

Review URL: https://codereview.chromium.org/1476403003

Cr-Commit-Position: refs/heads/master@{#362730}


CrOS-Libchrome-Original-Commit: 70f3fac9eba163c6b59ca23e88f720a035312394
4 files changed
tree: 3ae6c63023db0723c87956af2cfaf9b6e72e053c
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/