| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/location_bar/location_bar_view.cc (revision 150796)
|
| +++ chrome/browser/ui/views/location_bar/location_bar_view.cc (working copy)
|
| @@ -1144,7 +1144,8 @@
|
|
|
| WebContents* contents = GetWebContentsFromDelegate(delegate_);
|
| if (!page_action_views_.empty() && contents) {
|
| - Browser* browser = browser::FindBrowserWithWebContents(contents);
|
| + Browser* browser =
|
| + browser::FindBrowserForController(&contents->GetController(), NULL);
|
| GURL url = chrome::GetActiveWebContents(browser)->GetURL();
|
|
|
| for (PageActionViews::const_iterator i(page_action_views_.begin());
|
|
|