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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java

Issue 2828353002: Android: Remove GetApplicationContext part 3 (Closed)
Patch Set: Fix android webview tests 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
Index: content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java
index 9d8845b8cdd94d1298bd3731463b596a6f64ec6b..cd0f0703e42fbf7c54622c3e894337891565f0f9 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java
@@ -49,21 +49,20 @@ class ChildProcessLauncherHelper {
}
@CalledByNative
- private static ChildProcessLauncherHelper create(long nativePointer, Context context,
- int paramId, final String[] commandLine, int childProcessId,
- FileDescriptorInfo[] filesToBeMapped) {
+ private static ChildProcessLauncherHelper create(long nativePointer, int paramId,
+ final String[] commandLine, int childProcessId, FileDescriptorInfo[] filesToBeMapped) {
assert LauncherThread.runningOnLauncherThread();
return new ChildProcessLauncherHelper(
- nativePointer, context, paramId, commandLine, childProcessId, filesToBeMapped);
+ nativePointer, paramId, commandLine, childProcessId, filesToBeMapped);
}
- private ChildProcessLauncherHelper(long nativePointer, Context context, int paramId,
- final String[] commandLine, int childProcessId, FileDescriptorInfo[] filesToBeMapped) {
+ private ChildProcessLauncherHelper(long nativePointer, int paramId, final String[] commandLine,
+ int childProcessId, FileDescriptorInfo[] filesToBeMapped) {
assert LauncherThread.runningOnLauncherThread();
mNativeChildProcessLauncherHelper = nativePointer;
- ChildProcessLauncher.start(context, paramId, commandLine, childProcessId, filesToBeMapped,
- new ChildProcessLauncher.LaunchCallback() {
+ ChildProcessLauncher.start(ContextUtils.getApplicationContext(), paramId, commandLine,
+ childProcessId, filesToBeMapped, new ChildProcessLauncher.LaunchCallback() {
@Override
public void onChildProcessStarted(int pid) {
mPid = pid;

Powered by Google App Engine
This is Rietveld 408576698