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

Unified Diff: ios/chrome/browser/translate/translate_message_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
Index: ios/chrome/browser/translate/translate_message_infobar_controller.mm
diff --git a/ios/chrome/browser/translate/translate_message_infobar_controller.mm b/ios/chrome/browser/translate/translate_message_infobar_controller.mm
index b02e16f1e43160e1de414411eb15725246c0a03a..5af8763bd58b7ec67bef82d5fe82d50cce616dbd 100644
--- a/ios/chrome/browser/translate/translate_message_infobar_controller.mm
+++ b/ios/chrome/browser/translate/translate_message_infobar_controller.mm
@@ -10,7 +10,6 @@
#include "ios/chrome/browser/translate/translate_infobar_tags.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/gfx/image/image.h"
@interface TranslateMessageInfoBarController ()
@@ -22,10 +21,9 @@
@implementation TranslateMessageInfoBarController
-- (UIView<InfoBarViewProtocol>*)viewForDelegate:
- (infobars::InfoBarDelegate*)delegate
- frame:(CGRect)frame {
- base::scoped_nsobject<UIView<InfoBarViewProtocol>> infoBarView;
+- (InfoBarView*)viewForDelegate:(infobars::InfoBarDelegate*)delegate
+ frame:(CGRect)frame {
+ base::scoped_nsobject<InfoBarView> infoBarView;
translate::TranslateInfoBarDelegate* translateInfoBarDelegate =
delegate->AsTranslateInfoBarDelegate();
infoBarView.reset(
« no previous file with comments | « ios/chrome/browser/translate/never_translate_infobar_controller.mm ('k') | ios/chrome/browser/ui/infobars/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698