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

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

Issue 2596813002: Remove ChromeBrowserProvider::CreateInfoBarView() method. (Closed)
Patch Set: Created 4 years 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/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 10ab652052e0b836c9e60a6d3d39b7aa58e0248b..0cdbbdf561cdb75caf6eaeb2650b91a8ecf1ef5e 100644
--- a/ios/chrome/browser/infobars/confirm_infobar_controller.mm
+++ b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
@@ -8,9 +8,9 @@
#include "base/strings/string_util.h"
#include "base/strings/sys_string_conversions.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
-#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
-#import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h"
-#import "ios/public/provider/chrome/browser/ui/infobar_view_protocol.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"
@@ -63,7 +63,7 @@ ConfirmInfoBarDelegate::InfoBarButton UITagToButton(NSUInteger tag) {
UIView<InfoBarViewProtocol>* infoBarView;
_confirmInfobarDelegate = delegate->AsConfirmInfoBarDelegate();
infoBarView =
- ios::GetChromeBrowserProvider()->CreateInfoBarView(frame, self.delegate);
+ [[InfoBarView alloc] initWithFrame:frame delegate:self.delegate];
// Model data.
gfx::Image modelIcon = _confirmInfobarDelegate->GetIcon();
int buttons = _confirmInfobarDelegate->GetButtons();

Powered by Google App Engine
This is Rietveld 408576698