Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2929)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 1455343002: Start calling show/hide onStart/onStop in DocumentActivity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTab.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTab.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698