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

Unified Diff: ios/chrome/browser/ui/first_run/first_run_util.mm

Issue 2680433002: [ObjC ARC] Converts ios/chrome/browser/ui/first_run:first_run to ARC. (Closed)
Patch Set: weak Created 3 years, 10 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
Index: ios/chrome/browser/ui/first_run/first_run_util.mm
diff --git a/ios/chrome/browser/ui/first_run/first_run_util.mm b/ios/chrome/browser/ui/first_run/first_run_util.mm
index 7fa7cfc1d43baaaf0de483775df681428fd56d12..766b2a287190a5f0e3a095f787a244a8e55fc2f4 100644
--- a/ios/chrome/browser/ui/first_run/first_run_util.mm
+++ b/ios/chrome/browser/ui/first_run/first_run_util.mm
@@ -24,6 +24,10 @@
#include "ios/web/public/web_thread.h"
#import "ui/gfx/ios/NSString+CrStringDrawing.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
NSString* const kChromeFirstRunUIWillFinishNotification =
@"kChromeFirstRunUIWillFinishNotification";
@@ -66,7 +70,7 @@ NSString* InsertNewlineBeforeNthToLastWord(NSString* text, int index) {
count++;
*stop = count == index;
}];
- NSMutableString* textWithNewline = [[text mutableCopy] autorelease];
+ NSMutableString* textWithNewline = [text mutableCopy];
[textWithNewline insertString:@"\n" atIndex:range.location];
return textWithNewline;
}

Powered by Google App Engine
This is Rietveld 408576698