Index: remoting/client/jni/jni_client.h |
diff --git a/remoting/client/jni/jni_client.h b/remoting/client/jni/jni_client.h |
index 56c6bc10773490d387fa069b0e1c392cdd852956..005ec1ca8a74e3586cbe4c1f09d97d4001298881 100644 |
--- a/remoting/client/jni/jni_client.h |
+++ b/remoting/client/jni/jni_client.h |
@@ -7,6 +7,7 @@ |
#include <jni.h> |
+#include "base/android/scoped_java_ref.h" |
#include "base/macros.h" |
namespace remoting { |
@@ -19,7 +20,7 @@ class JniClient { |
// Register C++ methods exposed to Java using JNI. |
static bool RegisterJni(JNIEnv* env); |
- void Destroy(JNIEnv* env, jobject caller); |
+ void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& caller); |
private: |
DISALLOW_COPY_AND_ASSIGN(JniClient); |