Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3998)

Unified Diff: chrome/browser/ui/views/location_bar/click_handler.cc

Issue 9479008: Re-factor location bar/toolbar code to get rid of the browser dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: call right overloaded method Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b646dfa15238e29aad2611cff160c2c95344506c 100644
--- a/chrome/browser/ui/views/location_bar/click_handler.cc
+++ b/chrome/browser/ui/views/location_bar/click_handler.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/views/location_bar/click_handler.h"
-#include "chrome/browser/ui/browser.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"
@@ -39,6 +38,6 @@ void ClickHandler::OnMouseReleased(const views::MouseEvent& event) {
return;
}
- Browser* browser = Browser::GetBrowserForController(&controller, NULL);
- browser->ShowPageInfo(tab, nav_entry->GetURL(), nav_entry->GetSSL(), true);
+ location_bar_->delegate()->ShowPageInfo(
+ tab, nav_entry->GetURL(), nav_entry->GetSSL(), true);
}
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_delegate.h ('k') | chrome/browser/ui/views/location_bar/content_setting_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698