| Index: chrome/browser/ui/views/location_bar/click_handler.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/click_handler.cc b/chrome/browser/ui/views/location_bar/click_handler.cc
|
| index 8f636ae1ab04f1150c4f34bb7e701221144db239..c72412680d1f99f3a78e03fedcde153800085906 100644
|
| --- a/chrome/browser/ui/views/location_bar/click_handler.cc
|
| +++ b/chrome/browser/ui/views/location_bar/click_handler.cc
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "chrome/browser/ui/views/location_bar/click_handler.h"
|
|
|
| -#include "chrome/browser/ui/browser.h"
|
| +#include "chrome/browser/ui/browser_show_actions.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
|
| #include "content/public/browser/navigation_controller.h"
|
| @@ -17,9 +17,11 @@ using content::NavigationEntry;
|
| using content::WebContents;
|
|
|
| ClickHandler::ClickHandler(const views::View* owner,
|
| - LocationBarView* location_bar)
|
| + LocationBarView* location_bar,
|
| + BrowserShowPageInfo* delegate)
|
| : owner_(owner),
|
| - location_bar_(location_bar) {
|
| + location_bar_(location_bar),
|
| + delegate_(delegate) {
|
| }
|
|
|
| void ClickHandler::OnMouseReleased(const views::MouseEvent& event) {
|
| @@ -39,6 +41,5 @@ void ClickHandler::OnMouseReleased(const views::MouseEvent& event) {
|
| return;
|
| }
|
|
|
| - Browser* browser = Browser::GetBrowserForController(&controller, NULL);
|
| - browser->ShowPageInfo(tab, nav_entry->GetURL(), nav_entry->GetSSL(), true);
|
| + delegate_->ShowPageInfo(tab, nav_entry->GetURL(), nav_entry->GetSSL(), true);
|
| }
|
|
|