Index: ios/chrome/browser/ui/sync/sync_error_infobar_delegate.mm |
diff --git a/ios/chrome/browser/ui/sync/sync_error_infobar_delegate.mm b/ios/chrome/browser/ui/sync/sync_error_infobar_delegate.mm |
index 428b82608422fb98e95a02498431f9c35862181c..57c1502ca321d76e1dc1602cef7d806a866a079a 100644 |
--- a/ios/chrome/browser/ui/sync/sync_error_infobar_delegate.mm |
+++ b/ios/chrome/browser/ui/sync/sync_error_infobar_delegate.mm |
@@ -9,7 +9,6 @@ |
#include <utility> |
#include "base/logging.h" |
-#include "base/mac/scoped_nsobject.h" |
#include "base/memory/ptr_util.h" |
#include "base/strings/sys_string_conversions.h" |
#include "components/browser_sync/profile_sync_service.h" |
@@ -26,6 +25,10 @@ |
#import "ios/chrome/browser/ui/sync/sync_util.h" |
#include "ui/base/l10n/l10n_util.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
// static |
bool SyncErrorInfoBarDelegate::Create(infobars::InfoBarManager* infobar_manager, |
ios::ChromeBrowserState* browser_state) { |
@@ -52,8 +55,8 @@ SyncErrorInfoBarDelegate::SyncErrorInfoBarDelegate( |
button_text_ = base::SysNSStringToUTF16( |
ios_internal::sync::GetSyncErrorButtonTitleForBrowserState( |
browser_state_)); |
- command_.reset([ios_internal::sync::GetSyncCommandForBrowserState( |
- browser_state_) retain]); |
+ command_.reset( |
+ ios_internal::sync::GetSyncCommandForBrowserState(browser_state_)); |
// Register for sync status changes. |
syncer::SyncService* sync_service = |