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

Unified Diff: ios/chrome/common/app_group/app_group_constants.mm

Issue 2513673003: [ObjC ARC] Converts ios/chrome/common/app_group:app_group to ARC.Automatically generated ARCMigra… (Closed)
Patch Set: Created 4 years, 1 month 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/common/app_group/BUILD.gn ('k') | ios/chrome/common/app_group/app_group_metrics.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/common/app_group/app_group_constants.mm
diff --git a/ios/chrome/common/app_group/app_group_constants.mm b/ios/chrome/common/app_group/app_group_constants.mm
index fc78c03bd997ecd79787adbc499700d0979cebc2..e5911ba6de99fbd1f7fcd63c9801388a5724d279 100644
--- a/ios/chrome/common/app_group/app_group_constants.mm
+++ b/ios/chrome/common/app_group/app_group_constants.mm
@@ -8,6 +8,10 @@
#include "base/strings/sys_string_conversions.h"
#include "components/version_info/version_info.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
NSString* const kChromeAppGroupIdentifier =
@"group." IOS_BUNDLE_ID_PREFIX ".chrome";
@@ -65,8 +69,7 @@ NSUserDefaults* GetGroupUserDefaults() {
NSUserDefaults* defaults = nil;
NSString* applicationGroup = ApplicationGroup();
if (applicationGroup) {
- defaults = [[[NSUserDefaults alloc] initWithSuiteName:applicationGroup]
- autorelease];
+ defaults = [[NSUserDefaults alloc] initWithSuiteName:applicationGroup];
if (defaults)
return defaults;
}
« no previous file with comments | « ios/chrome/common/app_group/BUILD.gn ('k') | ios/chrome/common/app_group/app_group_metrics.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698