| Index: chrome/browser/ui/views/location_bar/location_icon_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
|
| index 92e6e2d519736d6972b049c208360dd28bb6a195..6d247572502b5316167c668c51a9ce62ae14369d 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
|
| @@ -106,21 +106,7 @@ bool LocationIconView::OnActivate(const ui::Event& event) {
|
| WebContents* contents = location_bar_->GetWebContents();
|
| if (!contents)
|
| return false;
|
| -
|
| - // Important to use GetVisibleEntry to match what's showing in the omnibox.
|
| - NavigationEntry* entry = contents->GetController().GetVisibleEntry();
|
| - // The visible entry can be nullptr in the case of window.open("").
|
| - if (!entry)
|
| - return false;
|
| -
|
| - SecurityStateTabHelper* helper =
|
| - SecurityStateTabHelper::FromWebContents(contents);
|
| - DCHECK(helper);
|
| - security_state::SecurityInfo security_info;
|
| - helper->GetSecurityInfo(&security_info);
|
| -
|
| - location_bar_->delegate()->ShowWebsiteSettings(
|
| - contents, entry->GetVirtualURL(), security_info);
|
| + location_bar_->delegate()->ShowWebsiteSettings(contents);
|
| return true;
|
| }
|
|
|
|
|