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

Unified Diff: ios/net/empty_nsurlcache.mm

Issue 2489533003: [ObjC ARC] Converts ios/net to ARC. (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/net/crn_http_url_response.mm ('k') | ios/net/http_protocol_logging.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « ios/net/crn_http_url_response.mm ('k') | ios/net/http_protocol_logging.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698