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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_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/native_app_launcher/native_app_infobar_controller.mm
diff --git a/ios/chrome/browser/native_app_launcher/native_app_infobar_controller.mm b/ios/chrome/browser/native_app_launcher/native_app_infobar_controller.mm
index 48243604e7f6477f8b595620aa1a4b9ce7b4cc6a..0f0a823b7d1f62e680efa6a7d14cfeef172cb343 100644
--- a/ios/chrome/browser/native_app_launcher/native_app_infobar_controller.mm
+++ b/ios/chrome/browser/native_app_launcher/native_app_infobar_controller.mm
@@ -8,10 +8,10 @@
#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h"
+#import "ios/chrome/browser/ui/infobars/infobar_view.h"
+#include "ios/chrome/browser/ui/infobars/infobar_view_protocol.h"
#include "ios/chrome/grit/ios_strings.h"
-#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
#import "ios/public/provider/chrome/browser/native_app_launcher/native_app_types.h"
-#include "ios/public/provider/chrome/browser/ui/infobar_view_protocol.h"
#include "ui/base/l10n/l10n_util.h"
@interface NativeAppInfoBarController ()
@@ -41,7 +41,7 @@
nativeAppInfoBarDelegate_ = static_cast<NativeAppInfoBarDelegate*>(delegate);
DCHECK(nativeAppInfoBarDelegate_);
infoBarView.reset(
- ios::GetChromeBrowserProvider()->CreateInfoBarView(frame, self.delegate));
+ [[InfoBarView alloc] initWithFrame:frame delegate:self.delegate]);
// Lays out widgets common to all NativeAppInfobars.
[infoBarView

Powered by Google App Engine
This is Rietveld 408576698