| 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 2ddffff9aaeedf6438add13d861102a7e3a30057..e830526e2a4531c44f10392f75844c5da4dfa014 100644
|
| --- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| +++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| @@ -113,17 +113,15 @@ base::string16 RegisterProtocolHandlerInfoBarDelegate::GetLinkText() const {
|
| return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
|
| }
|
|
|
| +GURL RegisterProtocolHandlerInfoBarDelegate::GetLinkURL() const {
|
| + return GURL(chrome::kLearnMoreRegisterProtocolHandlerURL);
|
| +}
|
| +
|
| bool RegisterProtocolHandlerInfoBarDelegate::LinkClicked(
|
| WindowOpenDisposition disposition) {
|
| content::RecordAction(
|
| base::UserMetricsAction("RegisterProtocolHandler.InfoBar_LearnMore"));
|
| - InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
|
| - content::OpenURLParams(
|
| - GURL(chrome::kLearnMoreRegisterProtocolHandlerURL),
|
| - content::Referrer(),
|
| - (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| - ui::PAGE_TRANSITION_LINK, false));
|
| - return false;
|
| + return ConfirmInfoBarDelegate::LinkClicked(disposition);
|
| }
|
|
|
| base::string16 RegisterProtocolHandlerInfoBarDelegate::GetProtocolName(
|
|
|