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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.mm

Issue 2949103008: [ObjC ARC] Converts ios/chrome/browser/native_app_launcher:native_app_launcher to ARC. (Closed)
Patch Set: missing weak Created 3 years, 6 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 | « ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.mm
diff --git a/ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.mm b/ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.mm
index 66c83f885eea629394c1cc2a857f4c4415cc85c7..9e75ac96a38a69f39f4cb128470a12929dce7dac 100644
--- a/ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.mm
+++ b/ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.mm
@@ -9,7 +9,6 @@
#include <memory>
#include <utility>
-#include "base/mac/scoped_nsobject.h"
#include "base/memory/ptr_util.h"
#include "base/strings/sys_string_conversions.h"
#include "components/infobars/core/infobar_manager.h"
@@ -18,6 +17,10 @@
#include "ios/chrome/grit/ios_strings.h"
#include "ui/base/l10n/l10n_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace native_app_infobar {
const CGSize kSmallIconSize = {29.0, 29.0};
} // namespace native_app_infobar
@@ -40,8 +43,8 @@ bool NativeAppInfoBarDelegate::Create(
auto infobar =
base::MakeUnique<InfoBarIOS>(base::MakeUnique<NativeAppInfoBarDelegate>(
controller_protocol, page_url, type));
- base::scoped_nsobject<NativeAppInfoBarController> controller(
- [[NativeAppInfoBarController alloc] initWithDelegate:infobar.get()]);
+ NativeAppInfoBarController* controller =
+ [[NativeAppInfoBarController alloc] initWithDelegate:infobar.get()];
infobar->SetController(controller);
return !!manager->AddInfoBar(std::move(infobar));
}
« no previous file with comments | « ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698