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

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

Issue 1104293006: Revert of [Android] Stop hiding the RWHV layer subtree when hiding the widget (patchset #12 id:3300… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Rebase Created 5 years, 8 months 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
Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index a087e845227cfe7a91f903e355c621beb5e8e15a..48690c65806522e638c747081f3e9ce786e1f7ef 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -1209,6 +1209,13 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
}
/**
+ * Called on the foreground tab when the Activity is stopped.
+ */
+ public void onActivityStop() {
+ hide();
+ }
+
+ /**
* Prepares the tab to be shown. This method is supposed to be called before the tab is
* displayed. It restores the ContentView if it is not available after the cold start and
* reloads the tab if its renderer has crashed.

Powered by Google App Engine
This is Rietveld 408576698