Index: base/android/jni_generator/sample_for_tests.cc |
diff --git a/base/android/jni_generator/sample_for_tests.cc b/base/android/jni_generator/sample_for_tests.cc |
index 6707742ed01a7087be83cc9c38aa5fe77ce9931f..9a8bb18097cec140499fc8cd58d0e5de31e4d2e5 100644 |
--- a/base/android/jni_generator/sample_for_tests.cc |
+++ b/base/android/jni_generator/sample_for_tests.cc |
@@ -7,8 +7,7 @@ |
#include "base/android/jni_android.h" |
#include "base/android/jni_string.h" |
#include "base/android/scoped_java_ref.h" |
-#include "jni/SampleForTests_jni.h" |
- |
+#include "jni/SampleForTests_jni.h" // Generated, add based on Java class name. |
nyquist
2015/05/13 06:47:20
Could you also clarify that this file should only
scheib
2015/05/13 21:59:52
Done.
|
using base::android::AttachCurrentThread; |
using base::android::ScopedJavaLocalRef; |
@@ -26,6 +25,11 @@ CPPClass::CPPClass() { |
CPPClass::~CPPClass() { |
} |
+// static |
+bool CPPClass::RegisterJNI(JNIEnv* env) { |
+ return RegisterNativesImpl(env); // Generated in SampleForTests_jni.h |
+} |
+ |
void CPPClass::Destroy(JNIEnv* env, jobject obj) { |
delete this; |
} |