| 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;
|
| }
|
|
|
|
|