diff options
Diffstat (limited to 'chrome/browser/cocoa/tab_strip_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_strip_controller.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm index 926e2b9d..e1b167b 100644 --- a/chrome/browser/cocoa/tab_strip_controller.mm +++ b/chrome/browser/cocoa/tab_strip_controller.mm @@ -242,6 +242,12 @@ class TabStripBridge : public TabStripModelObserver { [current setState:(i == index) ? NSOnState : NSOffState]; } + // Tell the new tab contents it is about to become the selected tab. Here it + // can do things like make sure the toolbar is up to date. + TabContentsController* newController = + [self controllerWithContents:newContents]; + [newController willBecomeSelectedTab]; + // Swap in the contents for the new tab [self swapInTabContents:newContents]; } |