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

Unified Diff: ios/chrome/browser/infobars/confirm_infobar_controller.mm

Issue 2592113002: Remove legacy InfoBarViewProtocol. (Closed)
Patch Set: Rebase. Created 3 years, 12 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
« no previous file with comments | « no previous file | ios/chrome/browser/infobars/confirm_infobar_controller+protected.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/infobars/confirm_infobar_controller.mm
diff --git a/ios/chrome/browser/infobars/confirm_infobar_controller.mm b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
index 0cdbbdf561cdb75caf6eaeb2650b91a8ecf1ef5e..3e72bb6becfecbe6c99cf41f2164783791f500cc 100644
--- a/ios/chrome/browser/infobars/confirm_infobar_controller.mm
+++ b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
@@ -10,7 +10,6 @@
#include "components/infobars/core/confirm_infobar_delegate.h"
#import "ios/chrome/browser/ui/infobars/infobar_view.h"
#import "ios/chrome/browser/ui/infobars/infobar_view_delegate.h"
-#import "ios/chrome/browser/ui/infobars/infobar_view_protocol.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/image/image.h"
@@ -57,12 +56,10 @@ ConfirmInfoBarDelegate::InfoBarButton UITagToButton(NSUInteger tag) {
#pragma mark -
#pragma mark InfoBarController
-- (UIView<InfoBarViewProtocol>*)viewForDelegate:
- (infobars::InfoBarDelegate*)delegate
- frame:(CGRect)frame {
- UIView<InfoBarViewProtocol>* infoBarView;
+- (InfoBarView*)viewForDelegate:(infobars::InfoBarDelegate*)delegate
+ frame:(CGRect)frame {
_confirmInfobarDelegate = delegate->AsConfirmInfoBarDelegate();
- infoBarView =
+ InfoBarView* infoBarView =
[[InfoBarView alloc] initWithFrame:frame delegate:self.delegate];
// Model data.
gfx::Image modelIcon = _confirmInfobarDelegate->GetIcon();
@@ -109,7 +106,7 @@ ConfirmInfoBarDelegate::InfoBarButton UITagToButton(NSUInteger tag) {
return infoBarView;
}
-- (void)updateInfobarLabel:(UIView<InfoBarViewProtocol>*)view {
+- (void)updateInfobarLabel:(InfoBarView*)view {
if (!_confirmInfobarDelegate->GetMessageText().length())
return;
if (_confirmInfobarDelegate->GetLinkText().length()) {
« no previous file with comments | « no previous file | ios/chrome/browser/infobars/confirm_infobar_controller+protected.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698