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

Unified Diff: ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm

Issue 2814813003: [ObjC ARC] Converts ios/chrome/browser/ui/settings:settings_arc_transition to ARC. (Closed)
Patch Set: rebase Created 3 years, 8 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/settings/password_details_collection_view_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698