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

Unified Diff: content/public/android/java/src/org/chromium/content/app/ChildProcessService.java

Issue 1278823006: Fix a few CHECK_JNI failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « content/app/android/content_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
diff --git a/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java b/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
index 95c274df146ca3204fa612f73156de8c72f2b89f..3784527a43ef27d25a411a77d2dc73458eccfb56 100644
--- a/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
+++ b/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
@@ -203,8 +203,7 @@ public class ChildProcessService extends Service {
nativeRegisterGlobalFileDescriptor(
fdInfo.mId, fdInfo.mFd.detachFd(), fdInfo.mOffset, fdInfo.mSize);
}
- nativeInitChildProcess(sContext.get().getApplicationContext(),
- ChildProcessService.this, mCpuCount, mCpuFeatures);
+ nativeInitChildProcess(ChildProcessService.this, mCpuCount, mCpuFeatures);
if (mActivitySemaphore.tryAcquire()) {
ContentMain.start();
nativeExitChildProcess();
@@ -388,11 +387,10 @@ public class ChildProcessService extends Service {
* The main entry point for a child process. This should be called from a new thread since
* it will not return until the child process exits. See child_process_service.{h,cc}
*
- * @param applicationContext The Application Context of the current process.
* @param service The current ChildProcessService object.
* renderer.
*/
- private static native void nativeInitChildProcess(Context applicationContext,
+ private static native void nativeInitChildProcess(
ChildProcessService service, int cpuCount, long cpuFeatures);
/**
« no previous file with comments | « content/app/android/content_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698