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

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2883053002: Ensure InfoBarManager is moved when preload tab is set as current tab. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index cf8e9d41d368fd22e2ca27a27d40771f3d2fddd7..4750bd221a2ae8e5f7d2b95d98107c5e27c6e2e0 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -4614,6 +4614,11 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
[self uninstallDelegatesForTab:oldTab];
[self installDelegatesForTab:newTab];
+ if (_infoBarContainer) {
+ infobars::InfoBarManager* infoBarManager = [newTab infoBarManager];
+ _infoBarContainer->ChangeInfoBarManager(infoBarManager);
+ }
+
// Add |newTab|'s view to the hierarchy if it's the current Tab.
if (self.active && model.currentTab == newTab)
[self displayTab:newTab isNewSelection:NO];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698