| 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 1e96e67163f74d9919356f742de72206a451d0bf..619f4d8082f3af264c8295a49e62c2ece10f8177 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
|
| @@ -98,7 +98,8 @@ bool LocationIconDecoration::OnMousePressed(NSRect frame) {
|
|
|
| WebContents* tab = owner_->GetWebContents();
|
| const NavigationController& controller = tab->GetController();
|
| - NavigationEntry* nav_entry = controller.GetActiveEntry();
|
| + // Important to use GetVisibleEntry to match what's showing in the omnibox.
|
| + NavigationEntry* nav_entry = controller.GetVisibleEntry();
|
| if (!nav_entry) {
|
| NOTREACHED();
|
| return true;
|
|
|