Index: chrome/browser/cocoa/autocomplete_text_field_editor.mm |
=================================================================== |
--- chrome/browser/cocoa/autocomplete_text_field_editor.mm (revision 42372) |
+++ chrome/browser/cocoa/autocomplete_text_field_editor.mm (working copy) |
@@ -189,8 +189,8 @@ |
// (URLDropTarget protocol) |
- (id<URLDropTargetController>)urlDropController { |
- BrowserWindowController* windowController = [[self window] windowController]; |
- DCHECK([windowController isKindOfClass:[BrowserWindowController class]]); |
+ BrowserWindowController* windowController = |
+ [BrowserWindowController browserWindowControllerForView:self]; |
return [windowController toolbarController]; |
} |