| Index: chrome/browser/extensions/crashed_extension_infobar.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/crashed_extension_infobar.cc (revision 72158)
|
| +++ chrome/browser/extensions/crashed_extension_infobar.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -25,9 +25,7 @@
|
| DCHECK(!extension_id_.empty());
|
| }
|
|
|
| -CrashedExtensionInfoBarDelegate* CrashedExtensionInfoBarDelegate::
|
| -AsCrashedExtensionInfoBarDelegate() {
|
| - return this;
|
| +CrashedExtensionInfoBarDelegate::~CrashedExtensionInfoBarDelegate() {
|
| }
|
|
|
| bool CrashedExtensionInfoBarDelegate::ShouldExpire(
|
| @@ -35,11 +33,6 @@
|
| return false;
|
| }
|
|
|
| -string16 CrashedExtensionInfoBarDelegate::GetMessageText() const {
|
| - return l10n_util::GetStringFUTF16(IDS_EXTENSION_CRASHED_INFOBAR_MESSAGE,
|
| - UTF8ToUTF16(extension_name_));
|
| -}
|
| -
|
| void CrashedExtensionInfoBarDelegate::InfoBarClosed() {
|
| delete this;
|
| }
|
| @@ -50,17 +43,25 @@
|
| IDR_INFOBAR_PLUGIN_CRASHED);
|
| }
|
|
|
| +CrashedExtensionInfoBarDelegate*
|
| + CrashedExtensionInfoBarDelegate::AsCrashedExtensionInfoBarDelegate() {
|
| + return this;
|
| +}
|
| +
|
| +string16 CrashedExtensionInfoBarDelegate::GetMessageText() const {
|
| + return l10n_util::GetStringFUTF16(IDS_EXTENSION_CRASHED_INFOBAR_MESSAGE,
|
| + UTF8ToUTF16(extension_name_));
|
| +}
|
| +
|
| int CrashedExtensionInfoBarDelegate::GetButtons() const {
|
| return BUTTON_OK;
|
| }
|
|
|
| string16 CrashedExtensionInfoBarDelegate::GetButtonLabel(
|
| - ConfirmInfoBarDelegate::InfoBarButton button) const {
|
| - if (button == BUTTON_OK) {
|
| - return l10n_util::GetStringUTF16(
|
| - IDS_EXTENSION_CRASHED_INFOBAR_RESTART_BUTTON);
|
| - }
|
| - return ConfirmInfoBarDelegate::GetButtonLabel(button);
|
| + InfoBarButton button) const {
|
| + DCHECK_EQ(BUTTON_OK, button);
|
| + return l10n_util::GetStringUTF16(
|
| + IDS_EXTENSION_CRASHED_INFOBAR_RESTART_BUTTON);
|
| }
|
|
|
| bool CrashedExtensionInfoBarDelegate::Accept() {
|
|
|