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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_controller.mm

Issue 6262018: Cleanup:... (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/ui/cocoa/infobars/infobar_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/infobars/infobar_controller.mm (revision 72676)
+++ chrome/browser/ui/cocoa/infobars/infobar_controller.mm (working copy)
@@ -338,25 +338,6 @@
/////////////////////////////////////////////////////////////////////////
-// AlertInfoBarController implementation
-
-@implementation AlertInfoBarController
-
-// Alert infobars have a text message.
-- (void)addAdditionalControls {
- // No buttons.
- [self removeButtons];
-
- // Insert the text.
- AlertInfoBarDelegate* delegate = delegate_->AsAlertInfoBarDelegate();
- DCHECK(delegate);
- [self setLabelToMessage:base::SysUTF16ToNSString(delegate->GetMessageText())];
-}
-
-@end
-
-
-/////////////////////////////////////////////////////////////////////////
// LinkInfoBarController implementation
@implementation LinkInfoBarController
@@ -518,12 +499,6 @@
//////////////////////////////////////////////////////////////////////////
// CreateInfoBar() implementations
-InfoBar* AlertInfoBarDelegate::CreateInfoBar() {
- AlertInfoBarController* controller =
- [[AlertInfoBarController alloc] initWithDelegate:this];
- return new InfoBar(controller);
-}
-
InfoBar* LinkInfoBarDelegate::CreateInfoBar() {
LinkInfoBarController* controller =
[[LinkInfoBarController alloc] initWithDelegate:this];

Powered by Google App Engine
This is Rietveld 408576698