Index: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
index 2a3bb27a12c3d7fc227d4297e54bc01a0e232380..309d49f3a7f81d7a7dce79110d6c55b0ecba8194 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
@@ -1086,19 +1086,8 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
* on both cold and warm starts. |
*/ |
public void onActivityStart() { |
- onActivityStartInternal(true); |
- } |
- |
- /** |
- * Called on the foreground tab when the Activity showing the Tab gets stopped. |
- */ |
- public void onActivityStop() { |
- hide(); |
- } |
- |
- protected void onActivityStartInternal(boolean showNow) { |
if (isHidden()) { |
- if (showNow) show(TabSelectionType.FROM_USER); |
+ show(TabSelectionType.FROM_USER); |
} else { |
// The visible Tab's renderer process may have died after the activity was paused. |
// Ensure that it's restored appropriately. |
@@ -1112,6 +1101,13 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
} |
/** |
+ * Called on the foreground tab when the Activity showing the Tab gets stopped. |
+ */ |
+ public void onActivityStop() { |
+ hide(); |
+ } |
+ |
+ /** |
* @return Whether the tab is ready to display or it should be faded in as it loads. |
*/ |
public boolean shouldStall() { |