summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/infobars/infobars.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/infobars/infobars.cc')
-rw-r--r--chrome/browser/ui/views/infobars/infobars.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/chrome/browser/ui/views/infobars/infobars.cc b/chrome/browser/ui/views/infobars/infobars.cc
index 1014ed8..8129c273 100644
--- a/chrome/browser/ui/views/infobars/infobars.cc
+++ b/chrome/browser/ui/views/infobars/infobars.cc
@@ -316,7 +316,7 @@ void InfoBar::DeleteSelf() {
// AlertInfoBar, public: -------------------------------------------------------
-AlertInfoBar::AlertInfoBar(AlertInfoBarDelegate* delegate)
+AlertInfoBar::AlertInfoBar(ConfirmInfoBarDelegate* delegate)
: InfoBar(delegate) {
label_ = new views::Label(
UTF16ToWideHack(delegate->GetMessageText()),
@@ -353,12 +353,6 @@ void AlertInfoBar::Layout() {
OffsetY(this, text_ps), text_width, text_ps.height());
}
-// AlertInfoBar, private: ------------------------------------------------------
-
-AlertInfoBarDelegate* AlertInfoBar::GetDelegate() {
- return delegate()->AsAlertInfoBarDelegate();
-}
-
// LinkInfoBar, public: --------------------------------------------------------
LinkInfoBar::LinkInfoBar(LinkInfoBarDelegate* delegate)
@@ -598,12 +592,6 @@ void ConfirmInfoBar::Init() {
AddChildView(link_);
}
-// AlertInfoBarDelegate, InfoBarDelegate overrides: ----------------------------
-
-InfoBar* AlertInfoBarDelegate::CreateInfoBar() {
- return new AlertInfoBar(this);
-}
-
// LinkInfoBarDelegate, InfoBarDelegate overrides: -----------------------------
InfoBar* LinkInfoBarDelegate::CreateInfoBar() {