Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc |
=================================================================== |
--- chrome/browser/ui/omnibox/omnibox_edit_model.cc (revision 187358) |
+++ chrome/browser/ui/omnibox/omnibox_edit_model.cc (working copy) |
@@ -606,7 +606,7 @@ |
match.fill_into_edit.length() - match.inline_autocomplete_offset; |
} |
- if (disposition == CURRENT_TAB) { |
+ if ((disposition == CURRENT_TAB) && web_contents) { |
// If we know the destination is being opened in the current tab, |
// we can easily get the tab ID. (If it's being opened in a new |
// tab, we don't know the tab ID yet.) |