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

Unified Diff: content/browser/child_process_launcher_helper_android.cc

Issue 2821583002: android: Post stop/onServiceDisconnected to launcher (Closed)
Patch Set: rebase Created 3 years, 8 months 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 | « no previous file | content/public/android/java/src/org/chromium/content/browser/ChildConnectionAllocator.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher_helper_android.cc
diff --git a/content/browser/child_process_launcher_helper_android.cc b/content/browser/child_process_launcher_helper_android.cc
index e6e9341a26643367d2d0f9ff01a8305d69e80a37..a46f2c47fcfa53a78192a2f3ee3a4239a664e532 100644
--- a/content/browser/child_process_launcher_helper_android.cc
+++ b/content/browser/child_process_launcher_helper_android.cc
@@ -34,6 +34,7 @@ namespace {
// Stops a child process based on the handle returned from StartChildProcess.
void StopChildProcess(base::ProcessHandle handle) {
+ DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER);
JNIEnv* env = AttachCurrentThread();
DCHECK(env);
Java_ChildProcessLauncherHelper_stop(env, static_cast<jint>(handle));
@@ -159,7 +160,8 @@ base::TerminationStatus ChildProcessLauncherHelper::GetTerminationStatus(
// static
bool ChildProcessLauncherHelper::TerminateProcess(
const base::Process& process, int exit_code, bool wait) {
- StopChildProcess(process.Handle());
+ BrowserThread::PostTask(BrowserThread::PROCESS_LAUNCHER, FROM_HERE,
+ base::Bind(&StopChildProcess, process.Handle()));
return true;
}
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/ChildConnectionAllocator.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698