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

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

Issue 2567203002: Revert of [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 989791d366c585d69d01a95c7cf770505010af52..1878c3e7709240f1422a4bf076c56ab74db7e329 100644
--- a/ios/chrome/browser/ui/animation_util.mm
+++ b/ios/chrome/browser/ui/animation_util.mm
@@ -8,10 +8,6 @@
#include <cmath>
#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,
@@ -63,7 +59,7 @@
CAAnimation* DelayedAnimationMake(CAAnimation* animation,
CFTimeInterval delay) {
- CAAnimation* delayedAnimation = [animation copy];
+ CAAnimation* delayedAnimation = [[animation copy] autorelease];
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