Index: chrome/browser/nacl_host/nacl_infobar_delegate.cc |
diff --git a/chrome/browser/nacl_host/nacl_infobar_delegate.cc b/chrome/browser/nacl_host/nacl_infobar_delegate.cc |
index aaaaea40f605ee6348efb44490c48352a32f1fb5..e08db08186b0b295572de00d7c7969520f5d66e7 100644 |
--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc |
+++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc |
@@ -50,7 +50,9 @@ base::string16 NaClInfoBarDelegate::GetLinkText() const { |
} |
bool NaClInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
- web_contents()->OpenURL(content::OpenURLParams( |
+ content::WebContents* web_contents = |
+ InfoBarService::WebContentsFromInfoBar(infobar()); |
+ web_contents->OpenURL(content::OpenURLParams( |
GURL("https://support.google.com/chrome/?p=ib_nacl"), content::Referrer(), |
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
content::PAGE_TRANSITION_LINK, false)); |