| Index: content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
|
| diff --git a/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java b/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
|
| index bddb70f316753ae564bb10700aea9dad876fadb3..a12129de0a881982241cedaa83f04014c4da0851 100644
|
| --- a/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
|
| +++ b/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
|
| @@ -14,6 +14,7 @@ import android.view.KeyEvent;
|
| import org.chromium.base.ChromiumActivity;
|
| import org.chromium.content.app.LibraryLoader;
|
| import org.chromium.content.browser.ActivityContentVideoViewDelegate;
|
| +import org.chromium.content.browser.AndroidBrowserProcessInitException;
|
| import org.chromium.content.browser.ContentVideoView;
|
| import org.chromium.content.browser.ContentView;
|
| import org.chromium.content.browser.DeviceUtils;
|
| @@ -66,13 +67,18 @@ public class ContentShellActivity extends ChromiumActivity {
|
| mShellManager.setStartupUrl(Shell.sanitizeUrl(startupUrl));
|
| }
|
|
|
| - if (!ContentView.enableMultiProcess(this, ContentView.MAX_RENDERERS_AUTOMATIC)) {
|
| - String shellUrl = DEFAULT_SHELL_URL;
|
| - if (savedInstanceState != null
|
| + try {
|
| + if (!ContentView.enableMultiProcess(this, ContentView.MAX_RENDERERS_AUTOMATIC)) {
|
| + String shellUrl = DEFAULT_SHELL_URL;
|
| + if (savedInstanceState != null
|
| && savedInstanceState.containsKey(ACTIVE_SHELL_URL_KEY)) {
|
| - shellUrl = savedInstanceState.getString(ACTIVE_SHELL_URL_KEY);
|
| + shellUrl = savedInstanceState.getString(ACTIVE_SHELL_URL_KEY);
|
| + }
|
| + mShellManager.launchShell(shellUrl);
|
| }
|
| - mShellManager.launchShell(shellUrl);
|
| + } catch (AndroidBrowserProcessInitException e) {
|
| + Log.e(TAG, "ContentView initialization failed.", e);
|
| + finish();
|
| }
|
| }
|
|
|
|
|