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

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: 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 f9c0d98cb20e905a94d91ae4521d314f2dc2ea45..08e4a21a3f5403ff306690058bf85c6e0d69cdc6 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -4623,6 +4623,12 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
withTab:(Tab*)newTab
atIndex:(NSUInteger)index {
[self uninstallDelegatesForTab:oldTab];
+
+ if (_infoBarContainer) {
+ infobars::InfoBarManager* infoBarManager = [newTab infoBarManager];
+ _infoBarContainer->ChangeInfoBarManager(infoBarManager);
+ }
+
[self installDelegatesForTab:newTab];
rohitrao (ping after 24h) 2017/05/09 14:40:17 Does the new block of code need to come before |in
michaeldo 2017/05/09 21:12:46 I thought it did based on the other methods here,
// Add |newTab|'s view to the hierarchy if it's the current Tab.
« 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