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

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

Issue 2868433003: Ensure InfoBarManager is moved when preload tab is set as current tab. (Closed)
Patch Set: Move installDelegatesCall. 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 e3f9ee5daf9c9b0b6c06fbeaa3fbc199e6eb2675..7da1519f7d96ff88c9db51f7d55bb2670930c043 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