Auto reload page if render process crashes

If render process for an inactive tab crashes, the tab will
automatically get reloaded when the user switches to the tab.

Change-Id: Ic132bc50264c92d40332d99ba1f17714e9de163b
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index cf900a2..dcd63e0 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -1585,6 +1585,11 @@
 
     void resume() {
         if (mMainView != null) {
+            if (mMainView.hasCrashed()) {
+                // Reload if render process has crashed. This is done here so that
+                // setFocus call sends wasShown message to correct render process.
+                mMainView.reload();
+            }
             setupHwAcceleration(mMainView);
             mMainView.onResume();
             if (mSubView != null) {