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

Unified Diff: ios/chrome/browser/ui/animation_util.mm

Issue 2569713002: [ObjC ARC] Converts ios/chrome/browser/ui:ui to ARC. (Closed)
Patch Set: Created 4 years 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/UIView+SizeClassSupport.mm ('k') | ios/chrome/browser/ui/background_generator.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/animation_util.mm
diff --git a/ios/chrome/browser/ui/animation_util.mm b/ios/chrome/browser/ui/animation_util.mm
index 1878c3e7709240f1422a4bf076c56ab74db7e329..989791d366c585d69d01a95c7cf770505010af52 100644
--- a/ios/chrome/browser/ui/animation_util.mm
+++ b/ios/chrome/browser/ui/animation_util.mm
@@ -9,6 +9,10 @@
#include "ios/chrome/browser/ui/reversed_animation.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
CAAnimation* FrameAnimationMake(CALayer* layer,
CGRect beginFrame,
CGRect endFrame) {
@@ -59,7 +63,7 @@ CAAnimation* AnimationGroupMake(NSArray* animations) {
CAAnimation* DelayedAnimationMake(CAAnimation* animation,
CFTimeInterval delay) {
- CAAnimation* delayedAnimation = [[animation copy] autorelease];
+ CAAnimation* delayedAnimation = [animation copy];
if (delayedAnimation) {
delayedAnimation.beginTime = delay;
delayedAnimation = AnimationGroupMake(@[ delayedAnimation ]);
« no previous file with comments | « ios/chrome/browser/ui/UIView+SizeClassSupport.mm ('k') | ios/chrome/browser/ui/background_generator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698