| Index: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
|
| index 6f62a71c015f8dddacbb719c27e437c21207f53e..43add5d642e049803eacfac73e7339d7deac85d4 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
|
| @@ -69,7 +69,8 @@ public class AndroidBrowserProcess {
|
| * @param maxRendererProcesses See ContentView.enableMultiProcess().
|
| * @return Whether the process actually needed to be initialized (false if already running).
|
| */
|
| - public static boolean initContentViewProcess(Context context, int maxRendererProcesses) {
|
| + public static boolean initContentViewProcess(Context context, int maxRendererProcesses)
|
| + throws AndroidBrowserProcessInitException {
|
| return genericChromiumProcessInit(context, maxRendererProcesses, false);
|
| }
|
|
|
| @@ -81,7 +82,8 @@ public class AndroidBrowserProcess {
|
| * @param maxRendererProcesses See ContentView.enableMultiProcess().
|
| * @return Whether the process actually needed to be initialized (false if already running).
|
| */
|
| - public static boolean initChromiumBrowserProcess(Context context, int maxRendererProcesses) {
|
| + public static boolean initChromiumBrowserProcess(Context context, int maxRendererProcesses)
|
| + throws AndroidBrowserProcessInitException {
|
| return genericChromiumProcessInit(context, maxRendererProcesses, true);
|
| }
|
|
|
| @@ -93,7 +95,7 @@ public class AndroidBrowserProcess {
|
| * @return Whether the process actually needed to be initialized (false if already running).
|
| */
|
| private static boolean genericChromiumProcessInit(Context context, int maxRendererProcesses,
|
| - boolean hostIsChrome) {
|
| + boolean hostIsChrome) throws AndroidBrowserProcessInitException {
|
| if (sInitialized) return false;
|
| sInitialized = true;
|
|
|
| @@ -156,7 +158,9 @@ public class AndroidBrowserProcess {
|
|
|
| nativeSetCommandLineFlags(maxRenderers);
|
| ContentMain.initApplicationContext(appContext);
|
| - ContentMain.start();
|
| + int result = ContentMain.start();
|
| + if (result >= 0)
|
| + throw new AndroidBrowserProcessInitException(result);
|
| return true;
|
| }
|
|
|
|
|