diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm index e0627c79234b0..b4249c1dcce43 100644 --- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm @@ -284,8 +284,9 @@ // |popup_| gets redrawn once the animation completes. See // http://crbug.com/538590 and http://crbug.com/551007 . if (base::mac::IsOSElCapitanOrLater()) { + NSWindow* popup = popup_.get(); [[NSAnimationContext currentContext] setCompletionHandler:^{ - [popup_ display]; + [popup display]; }]; } [[popup_ animator] setFrame:popup_frame display:YES];