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

Unified Diff: ios/chrome/browser/ui/sync/sync_error_infobar_delegate.mm

Issue 2939433002: [ObjC ARC] Converts ios/chrome/browser/ui/sync:sync to ARC. (Closed)
Patch Set: 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/ui/sync/BUILD.gn ('k') | ios/chrome/browser/ui/sync/sync_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « ios/chrome/browser/ui/sync/BUILD.gn ('k') | ios/chrome/browser/ui/sync/sync_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698