| Index: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| diff --git a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| index 6160b6ef887115364a0b1f315a888ae8c43d206c..bd949e52c292c0c9d6658b7694ae6ab6de673730 100644
|
| --- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| +++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| @@ -115,10 +115,12 @@ bool RegisterProtocolHandlerInfoBarDelegate::LinkClicked(
|
| WindowOpenDisposition disposition) {
|
| content::RecordAction(
|
| base::UserMetricsAction("RegisterProtocolHandler.InfoBar_LearnMore"));
|
| - web_contents()->OpenURL(content::OpenURLParams(
|
| - GURL(chrome::kLearnMoreRegisterProtocolHandlerURL), content::Referrer(),
|
| - (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| - content::PAGE_TRANSITION_LINK, false));
|
| + InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
|
| + content::OpenURLParams(
|
| + GURL(chrome::kLearnMoreRegisterProtocolHandlerURL),
|
| + content::Referrer(),
|
| + (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| + content::PAGE_TRANSITION_LINK, false));
|
| return false;
|
| }
|
|
|
|
|