| Index: content/shell/android/shell_manager.cc
|
| diff --git a/content/shell/android/shell_manager.cc b/content/shell/android/shell_manager.cc
|
| index 3a22db00917c91d7ac14b9117e88329574878b0b..b262c883eddaf46d56b87dfd5f79dd9ba1f66e2f 100644
|
| --- a/content/shell/android/shell_manager.cc
|
| +++ b/content/shell/android/shell_manager.cc
|
| @@ -31,13 +31,11 @@ base::LazyInstance<GlobalState> g_global_state = LAZY_INSTANCE_INITIALIZER;
|
|
|
| namespace content {
|
|
|
| -jobject CreateShellView(Shell* shell) {
|
| +ScopedJavaLocalRef<jobject> CreateShellView(Shell* shell) {
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| jobject j_shell_manager = g_global_state.Get().j_shell_manager.obj();
|
| - return Java_ShellManager_createShell(
|
| - env,
|
| - j_shell_manager,
|
| - reinterpret_cast<intptr_t>(shell)).Release();
|
| + return Java_ShellManager_createShell(env, j_shell_manager,
|
| + reinterpret_cast<intptr_t>(shell));
|
| }
|
|
|
| void RemoveShellView(jobject shell_view) {
|
|
|