| Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm
 | 
| ===================================================================
 | 
| --- chrome/browser/ui/cocoa/browser_window_cocoa.mm	(revision 74134)
 | 
| +++ chrome/browser/ui/cocoa/browser_window_cocoa.mm	(working copy)
 | 
| @@ -613,8 +613,7 @@
 | 
|        [controller_ updateBookmarkBarVisibilityWithAnimation:YES];
 | 
|        break;
 | 
|      case NotificationType::SIDEBAR_CHANGED:
 | 
| -      UpdateSidebarForContents(
 | 
| -          Details<SidebarContainer>(details)->tab_contents());
 | 
| +      UpdateSidebar(Details<SidebarChangedDetails>(details).ptr());
 | 
|        break;
 | 
|      default:
 | 
|        NOTREACHED();  // we don't ask for anything else!
 | 
| @@ -633,8 +632,8 @@
 | 
|    return [controller_ window];
 | 
|  }
 | 
|  
 | 
| -void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) {
 | 
| -  if (tab_contents == browser_->GetSelectedTabContents()) {
 | 
| -    [controller_ updateSidebarForContents:tab_contents];
 | 
| +void BrowserWindowCocoa::UpdateSidebar(SidebarChangedDetails* details) {
 | 
| +  if (details->source->tab() == browser_->GetSelectedTabContentsWrapper()) {
 | 
| +    [controller_ updateSidebarForTab:details->source->tab()];
 | 
|    }
 | 
|  }
 | 
| 
 |