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

Side by Side Diff: content/app/android/child_process_service.cc

Issue 146693011: Terminate process in onDestroy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use System.exit Created 6 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/app/android/child_process_service.h" 5 #include "content/app/android/child_process_service.h"
6 6
7 #include <android/native_window_jni.h> 7 #include <android/native_window_jni.h>
8 #include <cpu-features.h> 8 #include <cpu-features.h>
9 9
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void ExitChildProcess(JNIEnv* env, jclass clazz) { 128 void ExitChildProcess(JNIEnv* env, jclass clazz) {
129 VLOG(0) << "ChildProcessService: Exiting child process."; 129 VLOG(0) << "ChildProcessService: Exiting child process.";
130 LibraryLoaderExitHook(); 130 LibraryLoaderExitHook();
131 _exit(0); 131 _exit(0);
132 } 132 }
133 133
134 bool RegisterChildProcessService(JNIEnv* env) { 134 bool RegisterChildProcessService(JNIEnv* env) {
135 return RegisterNativesImpl(env); 135 return RegisterNativesImpl(env);
136 } 136 }
137 137
138 void ShutdownMainThread(JNIEnv* env, jobject obj) {
139 ChildThread::ShutdownThread();
140 }
141
142 } // namespace content 138 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698