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

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

Issue 2282953003: Update the cached WindowAndroid in PermissionInfobar after reparenting (Closed)
Patch Set: Created 4 years, 4 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/infobar/InfoBarContainer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
index 0d5563c100836f3d42ed43061c196ded6828bbb4..8cba7fed5fc6d5b76ff73dd66597e6902001d97c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
@@ -93,6 +93,13 @@ public class InfoBarContainer extends SwipableOverlayView {
int statusCode) {
setIsObscuredByOtherView(false);
}
+
+ @Override
+ public void onReparentingFinished(Tab tab) {
+ for (InfoBar infobar : mInfoBars) {
+ infobar.onTabReparented(tab);
+ }
+ }
};
private final InfoBarContainerLayout mLayout;

Powered by Google App Engine
This is Rietveld 408576698