| Index: ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| diff --git a/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm b/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| index 9067652d30e9239156fd2dcd789c48579a9ef730..9ef7cff93d039022380576f56d9f9e3290b05316 100644
|
| --- a/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| +++ b/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| @@ -6,9 +6,7 @@
|
|
|
| #import <CoreLocation/CoreLocation.h>
|
|
|
| -#import "base/ios/weak_nsobject.h"
|
| #import "base/mac/foundation_util.h"
|
| -#import "base/mac/scoped_nsobject.h"
|
| #include "base/metrics/user_metrics.h"
|
| #include "components/google/core/browser/google_util.h"
|
| #include "components/physical_web/data_source/physical_web_data_source.h"
|
| @@ -32,6 +30,10 @@
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "url/gurl.h"
|
|
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
| +
|
| namespace {
|
|
|
| typedef NS_ENUM(NSInteger, SectionIdentifier) {
|
| @@ -163,8 +165,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| NSString* switchLabelText =
|
| l10n_util::GetNSString(IDS_IOS_OPTIONS_ENABLE_PHYSICAL_WEB);
|
|
|
| - CollectionViewSwitchItem* switchItem = [[[CollectionViewSwitchItem alloc]
|
| - initWithType:ItemTypePhysicalWebSwitch] autorelease];
|
| + CollectionViewSwitchItem* switchItem =
|
| + [[CollectionViewSwitchItem alloc] initWithType:ItemTypePhysicalWebSwitch];
|
| switchItem.text = switchLabelText;
|
| switchItem.on = [PhysicalWebCollectionViewController
|
| shouldEnableForPreferenceState:_physicalWebEnabled.GetValue()];
|
| @@ -176,8 +178,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| NSString* learnMoreText =
|
| l10n_util::GetNSString(IDS_IOS_OPTIONS_ENABLE_PHYSICAL_WEB_DETAILS);
|
|
|
| - CollectionViewFooterItem* learnMore = [[[CollectionViewFooterItem alloc]
|
| - initWithType:ItemTypeLearnMore] autorelease];
|
| + CollectionViewFooterItem* learnMore =
|
| + [[CollectionViewFooterItem alloc] initWithType:ItemTypeLearnMore];
|
| learnMore.text = learnMoreText;
|
| learnMore.linkURL = GURL(kPhysicalWebLearnMoreURL);
|
| learnMore.linkDelegate = self;
|
|
|