| Index: chrome/browser/ui/cocoa/browser_window_controller.mm
 | 
| ===================================================================
 | 
| --- chrome/browser/ui/cocoa/browser_window_controller.mm	(revision 74134)
 | 
| +++ chrome/browser/ui/cocoa/browser_window_controller.mm	(working copy)
 | 
| @@ -484,8 +484,8 @@
 | 
|    [devToolsController_ ensureContentsVisible];
 | 
|  }
 | 
|  
 | 
| -- (void)updateSidebarForContents:(TabContents*)contents {
 | 
| -  [sidebarController_ updateSidebarForTabContents:contents];
 | 
| +- (void)updateSidebarForTab:(TabContentsWrapper*)tab {
 | 
| +  [sidebarController_ updateSidebarForTab:tab];
 | 
|    [sidebarController_ ensureContentsVisible];
 | 
|  }
 | 
|  
 | 
| @@ -1421,14 +1421,16 @@
 | 
|  }
 | 
|  
 | 
|  // TabStripControllerDelegate protocol.
 | 
| -- (void)onSelectTabWithContents:(TabContents*)contents {
 | 
| +- (void)onSelectTab:(TabContentsWrapper*)tab {
 | 
|    // Update various elements that are interested in knowing the current
 | 
|    // TabContents.
 | 
|  
 | 
| +  TabContents* contents = tab ? tab->tab_contents() : NULL;
 | 
| +
 | 
|    // Update all the UI bits.
 | 
|    windowShim_->UpdateTitleBar();
 | 
|  
 | 
| -  [sidebarController_ updateSidebarForTabContents:contents];
 | 
| +  [sidebarController_ updateSidebarForTab:tab];
 | 
|    [devToolsController_ updateDevToolsForTabContents:contents
 | 
|                                          withProfile:browser_->profile()];
 | 
|  
 | 
| 
 |