Index: chrome/browser/ui/views/location_bar/location_bar_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
index 9a8d6fbfe8435ec6654feeb046fcc35748558421..1f2823da1e92f071ec80a0f240804b2724976354 100644 |
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
@@ -25,6 +25,7 @@ |
#include "chrome/browser/search_engines/template_url_service.h" |
#include "chrome/browser/search_engines/template_url_service_factory.h" |
#include "chrome/browser/ui/browser.h" |
+#include "chrome/browser/ui/browser_finder.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
#include "chrome/browser/ui/view_ids.h" |
#include "chrome/browser/ui/views/browser_dialogs.h" |
@@ -1019,7 +1020,7 @@ void LocationBarView::RefreshPageActionViews() { |
WebContents* contents = GetWebContentsFromDelegate(delegate_); |
if (!page_action_views_.empty() && contents) { |
Browser* browser = |
- Browser::GetBrowserForController(&contents->GetController(), NULL); |
+ browser::FindBrowserForController(&contents->GetController(), NULL); |
GURL url = browser->GetSelectedWebContents()->GetURL(); |
for (PageActionViews::const_iterator i(page_action_views_.begin()); |