Index: chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm |
index 85c6907c30189afd323a53fe9016ea5e21676aab..9d32ef83bc1dd00020fe0cce79dc091a6027f3cd 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm |
@@ -115,7 +115,8 @@ bool LocationIconDecoration::OnMousePressed(NSRect frame, NSPoint location) { |
const NavigationController& controller = tab->GetController(); |
// Important to use GetVisibleEntry to match what's showing in the omnibox. |
NavigationEntry* nav_entry = controller.GetVisibleEntry(); |
- DCHECK(nav_entry); |
+ if (!nav_entry) |
+ return true; |
Browser* browser = chrome::FindBrowserWithWebContents(tab); |
chrome::ShowWebsiteSettings(browser, tab, nav_entry->GetURL(), |
nav_entry->GetSSL()); |