| 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 d37f9aee20d38a41952eb279a604e88a8dee1593..669a78316643348e8019c1ff76e0b0bd9e1f9812 100644
|
| --- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| +++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| @@ -72,19 +72,21 @@ RegisterProtocolHandlerInfoBarDelegate*
|
| base::string16 RegisterProtocolHandlerInfoBarDelegate::GetMessageText() const {
|
| ProtocolHandler old_handler = registry_->GetHandlerFor(handler_.protocol());
|
| return old_handler.IsEmpty() ?
|
| - l10n_util::GetStringFUTF16(IDS_REGISTER_PROTOCOL_HANDLER_CONFIRM,
|
| - handler_.title(), base::UTF8ToUTF16(handler_.url().host()),
|
| + l10n_util::GetStringFUTF16(
|
| + IDS_REGISTER_PROTOCOL_HANDLER_CONFIRM,
|
| + base::UTF8ToUTF16(handler_.url().host()),
|
| GetProtocolName(handler_)) :
|
| - l10n_util::GetStringFUTF16(IDS_REGISTER_PROTOCOL_HANDLER_CONFIRM_REPLACE,
|
| - handler_.title(), base::UTF8ToUTF16(handler_.url().host()),
|
| - GetProtocolName(handler_), old_handler.title());
|
| + l10n_util::GetStringFUTF16(
|
| + IDS_REGISTER_PROTOCOL_HANDLER_CONFIRM_REPLACE,
|
| + base::UTF8ToUTF16(handler_.url().host()),
|
| + GetProtocolName(handler_),
|
| + base::UTF8ToUTF16(old_handler.url().host()));
|
| }
|
|
|
| base::string16 RegisterProtocolHandlerInfoBarDelegate::GetButtonLabel(
|
| InfoBarButton button) const {
|
| return (button == BUTTON_OK) ?
|
| - l10n_util::GetStringFUTF16(IDS_REGISTER_PROTOCOL_HANDLER_ACCEPT,
|
| - handler_.title()) :
|
| + l10n_util::GetStringUTF16(IDS_REGISTER_PROTOCOL_HANDLER_ACCEPT) :
|
| l10n_util::GetStringUTF16(IDS_REGISTER_PROTOCOL_HANDLER_DENY);
|
| }
|
|
|
|
|