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

Unified Diff: ios/web/net/clients/crw_js_injection_network_client_factory.mm

Issue 2247303009: Converts ios/web/net to ARC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-web
Patch Set: Removes web_arc_transition temporary target Created 4 years, 4 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/web/net/clients/crw_js_injection_network_client_factory.mm
diff --git a/ios/web/net/clients/crw_js_injection_network_client_factory.mm b/ios/web/net/clients/crw_js_injection_network_client_factory.mm
index 7ca315351ac44fecb1266419892ab2e163a50022..f10114fa6cdb164d141a5e8f14af4ab720455da3 100644
--- a/ios/web/net/clients/crw_js_injection_network_client_factory.mm
+++ b/ios/web/net/clients/crw_js_injection_network_client_factory.mm
@@ -8,6 +8,10 @@
#include "ios/web/net/clients/crw_js_injection_network_client.h"
#include "net/url_request/url_request.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation CRWJSInjectionNetworkClientFactory
- (CRWJSInjectionNetworkClient*)
@@ -29,7 +33,7 @@
static_cast<int>(web::InjectionResult::INJECTION_RESULT_COUNT));
return nil;
}
- return [[[CRWJSInjectionNetworkClient alloc] init] autorelease];
+ return [[CRWJSInjectionNetworkClient alloc] init];
}
return nil;
}

Powered by Google App Engine
This is Rietveld 408576698