| Index: chrome/browser/media/media_stream_infobar_delegate.cc
|
| diff --git a/chrome/browser/media/media_stream_infobar_delegate.cc b/chrome/browser/media/media_stream_infobar_delegate.cc
|
| index f3059d503e965ba2f7f900d9fb1e8ba50106ccfc..4b177213ce4fdb75627ce0f352da887c532b9c09 100644
|
| --- a/chrome/browser/media/media_stream_infobar_delegate.cc
|
| +++ b/chrome/browser/media/media_stream_infobar_delegate.cc
|
| @@ -137,13 +137,13 @@ base::string16 MediaStreamInfoBarDelegate::GetLinkText() const {
|
|
|
| bool MediaStreamInfoBarDelegate::LinkClicked(
|
| WindowOpenDisposition disposition) {
|
| - web_contents()->OpenURL(content::OpenURLParams(
|
| - google_util::AppendGoogleLocaleParam(
|
| - GURL(chrome::kMediaAccessLearnMoreUrl)),
|
| - content::Referrer(),
|
| - (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| - content::PAGE_TRANSITION_LINK,
|
| - false));
|
| + InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
|
| + content::OpenURLParams(
|
| + google_util::AppendGoogleLocaleParam(
|
| + GURL(chrome::kMediaAccessLearnMoreUrl)),
|
| + content::Referrer(),
|
| + (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| + content::PAGE_TRANSITION_LINK, false));
|
|
|
| return false; // Do not dismiss the info bar.
|
| }
|
|
|