[AUTO UPDATE] Copying from upstream Mojo Repository.
62806213fa9dea7cb0c4bfc83c139f29ce1f6b2c
  Wed, 8 Jun 2016 16:21:26 -0700, viettrungluu@chromium.org
  Roll base to 0032c8e1a72eb85d947d8df8de503caa62b4d0a8.
diff --git a/android/native_test/native_test_launcher.cc b/android/native_test/native_test_launcher.cc
index 343f118..52b419d 100644
--- a/android/native_test/native_test_launcher.cc
+++ b/android/native_test/native_test_launcher.cc
@@ -70,12 +70,12 @@
 }  // namespace
 
 static void RunTests(JNIEnv* env,
-                     jobject obj,
-                     jstring jcommand_line_flags,
-                     jstring jcommand_line_file_path,
-                     jstring jstdout_file_path,
+                     const JavaParamRef<jobject>& obj,
+                     const JavaParamRef<jstring>& jcommand_line_flags,
+                     const JavaParamRef<jstring>& jcommand_line_file_path,
+                     const JavaParamRef<jstring>& jstdout_file_path,
                      jboolean jstdout_fifo,
-                     jobject app_context) {
+                     const JavaParamRef<jobject>& app_context) {
   // Command line initialized basically, will be fully initialized later.
   static const char* const kInitialArgv[] = { "ChromeTestActivity" };
   base::CommandLine::Init(arraysize(kInitialArgv), kInitialArgv);