summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/location_bar_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/location_bar_view.cc')
-rw-r--r--chrome/browser/views/location_bar_view.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index d92b5b4..1e12760 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -1109,17 +1109,13 @@ void LocationBarView::SecurityImageView::SetImageShown(Image image) {
bool LocationBarView::SecurityImageView::OnMousePressed(
const views::MouseEvent& event) {
- NavigationEntry* nav_entry =
- BrowserList::GetLastActive()->GetSelectedTabContents()->
- controller().GetActiveEntry();
+ TabContents* tab = BrowserList::GetLastActive()->GetSelectedTabContents();
+ NavigationEntry* nav_entry = tab->controller().GetActiveEntry();
if (!nav_entry) {
NOTREACHED();
return true;
}
- PageInfoWindow::CreatePageInfo(profile_,
- nav_entry,
- GetRootView()->GetWidget()->GetNativeView(),
- PageInfoWindow::SECURITY);
+ tab->ShowPageInfo(nav_entry->url(), nav_entry->ssl(), true);
return true;
}