| Index: content/app/android/child_process_service.cc
|
| diff --git a/content/app/android/child_process_service.cc b/content/app/android/child_process_service.cc
|
| index c6301aebdddf5f114a499f692fee20deaa208e10..d3e6a1bf473883a57a4e69800e0b5721999096b5 100644
|
| --- a/content/app/android/child_process_service.cc
|
| +++ b/content/app/android/child_process_service.cc
|
| @@ -133,11 +133,11 @@ class SurfaceTextureManagerImpl : public SurfaceTextureManager,
|
| // processes such as renderers, plugins, etc.
|
| void InternalInitChildProcess(JNIEnv* env,
|
| jclass clazz,
|
| - jobject context,
|
| jobject service_in,
|
| jint cpu_count,
|
| jlong cpu_features) {
|
| - base::android::ScopedJavaLocalRef<jobject> service(env, service_in);
|
| + base::android::ScopedJavaLocalRef<jobject> service(
|
| + env, env->NewLocalRef(service_in));
|
|
|
| // Set the CPU properties.
|
| android_setCpu(cpu_count, cpu_features);
|
| @@ -160,12 +160,10 @@ void RegisterGlobalFileDescriptor(JNIEnv* env,
|
|
|
| void InitChildProcess(JNIEnv* env,
|
| jclass clazz,
|
| - jobject context,
|
| jobject service,
|
| jint cpu_count,
|
| jlong cpu_features) {
|
| - InternalInitChildProcess(env, clazz, context, service, cpu_count,
|
| - cpu_features);
|
| + InternalInitChildProcess(env, clazz, service, cpu_count, cpu_features);
|
| }
|
|
|
| void ExitChildProcess(JNIEnv* env, jclass clazz) {
|
|
|