Index: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
diff --git a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
index 12081eb56fe0438b739eb68c99dc528d508d9de8..cb80a34dfc55fbc8a0fba7a8f7e26f1d03f43421 100644 |
--- a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
+++ b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
@@ -82,9 +82,10 @@ bool AlternateNavInfoBarDelegate::LinkClicked( |
// Pretend the user typed this URL, so that navigating to it will be the |
// default action when it's typed again in the future. |
- web_contents()->OpenURL(content::OpenURLParams( |
- match_.destination_url, content::Referrer(), disposition, |
- content::PAGE_TRANSITION_TYPED, false)); |
+ InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( |
+ content::OpenURLParams(match_.destination_url, content::Referrer(), |
+ disposition, content::PAGE_TRANSITION_TYPED, |
+ false)); |
// We should always close, even if the navigation did not occur within this |
// WebContents. |