Index: content/shell/android/shell_manager.cc |
diff --git a/content/shell/android/shell_manager.cc b/content/shell/android/shell_manager.cc |
index 0b12e1da831f1bff4f049600eb3beaa8a188afbf..5ef54c257a7734e2729af86c265c114cd5588252 100644 |
--- a/content/shell/android/shell_manager.cc |
+++ b/content/shell/android/shell_manager.cc |
@@ -38,6 +38,12 @@ jobject CreateShellView(Shell* shell) { |
return Java_ShellManager_createShell(env, j_shell_manager).Release(); |
} |
+void CloseShellView(jobject shell_view) { |
+ JNIEnv* env = base::android::AttachCurrentThread(); |
+ jobject j_shell_manager = g_global_state.Get().j_shell_manager.obj(); |
+ Java_ShellManager_closeShell(env, j_shell_manager, shell_view); |
+} |
+ |
// Register native methods |
bool RegisterShellManager(JNIEnv* env) { |
return RegisterNativesImpl(env); |