| Index: chrome/android/java/src/org/chromium/chrome/browser/init/NativeInitializationController.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/init/NativeInitializationController.java b/chrome/android/java/src/org/chromium/chrome/browser/init/NativeInitializationController.java
|
| index f7beba7409674afad31df65e312b60db91c5092a..f6e49d86921c4fcc6d34cbacb2ce496e82e50184 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/init/NativeInitializationController.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/init/NativeInitializationController.java
|
| @@ -72,8 +72,11 @@ class NativeInitializationController {
|
| /**
|
| * Start loading the native library in the background. This kicks off the native initialization
|
| * process.
|
| + *
|
| + * @param allocateChildConnection Whether a spare child connection should be allocated. Set to
|
| + * false if you know that no new renderer is needed.
|
| */
|
| - public void startBackgroundTasks() {
|
| + public void startBackgroundTasks(final boolean allocateChildConnection) {
|
| // TODO(yusufo) : Investigate using an AsyncTask for this.
|
| new Thread() {
|
| @Override
|
| @@ -98,7 +101,7 @@ class NativeInitializationController {
|
| mActivityDelegate.onStartupFailure();
|
| return;
|
| }
|
| - ChildProcessLauncher.warmUp(mContext);
|
| + if (allocateChildConnection) ChildProcessLauncher.warmUp(mContext);
|
| ThreadUtils.runOnUiThread(new Runnable() {
|
| @Override
|
| public void run() {
|
|
|