| Index: ios/chrome/browser/ui/settings/handoff_collection_view_controller.mm
|
| diff --git a/ios/chrome/browser/ui/settings/handoff_collection_view_controller.mm b/ios/chrome/browser/ui/settings/handoff_collection_view_controller.mm
|
| index 8fcca0939ced9304ffa912899d0fd20619c707d7..57d5425706bcd1fb01988060f311d4a1311048d8 100644
|
| --- a/ios/chrome/browser/ui/settings/handoff_collection_view_controller.mm
|
| +++ b/ios/chrome/browser/ui/settings/handoff_collection_view_controller.mm
|
| @@ -15,6 +15,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 {
|
|
|
| typedef NS_ENUM(NSInteger, SectionIdentifier) {
|
| @@ -61,8 +65,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| CollectionViewModel* model = self.collectionViewModel;
|
|
|
| [model addSectionWithIdentifier:SectionIdentifierSwitch];
|
| - CollectionViewSwitchItem* switchItem = [[[CollectionViewSwitchItem alloc]
|
| - initWithType:ItemTypeSwitch] autorelease];
|
| + CollectionViewSwitchItem* switchItem =
|
| + [[CollectionViewSwitchItem alloc] initWithType:ItemTypeSwitch];
|
| switchItem.text =
|
| l10n_util::GetNSString(IDS_IOS_OPTIONS_ENABLE_HANDOFF_TO_OTHER_DEVICES);
|
| switchItem.on = _handoffEnabled.GetValue();
|
| @@ -72,8 +76,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| // drawing bug in MDC.
|
| // TODO(crbug.com/650424) Use setFooter:forSectionWithIdentifier:.
|
| [model addSectionWithIdentifier:SectionIdentifierFooter];
|
| - CollectionViewFooterItem* footer = [[[CollectionViewFooterItem alloc]
|
| - initWithType:ItemTypeFooter] autorelease];
|
| + CollectionViewFooterItem* footer =
|
| + [[CollectionViewFooterItem alloc] initWithType:ItemTypeFooter];
|
| footer.text = l10n_util::GetNSString(
|
| IDS_IOS_OPTIONS_ENABLE_HANDOFF_TO_OTHER_DEVICES_DETAILS);
|
| [model addItem:footer toSectionWithIdentifier:SectionIdentifierFooter];
|
|
|