Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1708)

Unified Diff: shell/android/main.cc

Issue 1515543002: Close the shell when all activities are destroyed. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « shell/android/apk/src/org/chromium/mojo/shell/ShellService.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/main.cc
diff --git a/shell/android/main.cc b/shell/android/main.cc
index f94068422071deb41207106c73a04cd306724d2a..eb31de581105afbfc50de179ce41af78a35524ed 100644
--- a/shell/android/main.cc
+++ b/shell/android/main.cc
@@ -341,6 +341,11 @@ static void BindShell(JNIEnv* env, jclass clazz, jint shell_handle) {
mojo::MessagePipeHandle(shell_handle)))));
}
+static void QuitShell(JNIEnv* env, jclass jcaller) {
+ g_internal_data.Get().shell_task_runner->PostTask(
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
+}
+
bool RegisterShellService(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « shell/android/apk/src/org/chromium/mojo/shell/ShellService.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698