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

Unified Diff: ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm

Issue 2933873002: [ObjC ARC] Converts ios/chrome/browser/passwords:passwords to ARC. (Closed)
Patch Set: fix names and nil assignments. 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
Index: ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
diff --git a/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm b/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
index 19afa4839aba4fabfdd686d7a650b9c790069ccd..44a786bafd1eaa544b3c672725a4886d895779d3 100644
--- a/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
+++ b/ios/chrome/browser/passwords/ios_chrome_update_password_infobar_delegate.mm
@@ -6,7 +6,6 @@
#include <utility>
-#include "base/mac/scoped_nsobject.h"
#include "base/memory/ptr_util.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
@@ -21,6 +20,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
+
using password_manager::PasswordFormManager;
// static
@@ -32,8 +35,8 @@ void IOSChromeUpdatePasswordInfoBarDelegate::Create(
auto delegate = base::WrapUnique(new IOSChromeUpdatePasswordInfoBarDelegate(
is_smart_lock_branding_enabled, std::move(form_manager)));
std::unique_ptr<InfoBarIOS> infobar(new InfoBarIOS(std::move(delegate)));
- base::scoped_nsobject<UpdatePasswordInfoBarController> controller(
- [[UpdatePasswordInfoBarController alloc] initWithDelegate:infobar.get()]);
+ UpdatePasswordInfoBarController* controller =
+ [[UpdatePasswordInfoBarController alloc] initWithDelegate:infobar.get()];
infobar->SetController(controller);
infobar_manager->AddInfoBar(std::move(infobar));
}

Powered by Google App Engine
This is Rietveld 408576698