Index: ios/net/empty_nsurlcache.mm |
diff --git a/ios/net/empty_nsurlcache.mm b/ios/net/empty_nsurlcache.mm |
index c08826bb188e1c62ffc1ecae15f4732eda7fdac5..e387d450184ad5e9979105556f36de938c995b42 100644 |
--- a/ios/net/empty_nsurlcache.mm |
+++ b/ios/net/empty_nsurlcache.mm |
@@ -4,10 +4,14 @@ |
#import "ios/net/empty_nsurlcache.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
@implementation EmptyNSURLCache |
+ (instancetype)emptyNSURLCache { |
- return [[[EmptyNSURLCache alloc] init] autorelease]; |
+ return [[EmptyNSURLCache alloc] init]; |
} |
- (NSCachedURLResponse*)cachedResponseForRequest:(NSURLRequest*)request { |