Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3162)

Unified Diff: chrome/browser/extensions/crashed_extension_infobar.cc

Issue 6249010: Cleanup: de-inline a bunch of classes, rename and move "PluginInstaller" to "... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698