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

Unified Diff: ios/web/web_state/js/crw_js_injection_receiver.mm

Issue 2396553002: [ARC] Converts part of ios/web/ui to ARC.
Patch Set: co Created 4 years, 2 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/web_state/js/crw_js_injection_receiver.mm
diff --git a/ios/web/web_state/js/crw_js_injection_receiver.mm b/ios/web/web_state/js/crw_js_injection_receiver.mm
index 93386509584862efd8ba570d80dd0b826bf0191d..94ea7cbc3006bb51b11e9e506d2e3b3e13b825b9 100644
--- a/ios/web/web_state/js/crw_js_injection_receiver.mm
+++ b/ios/web/web_state/js/crw_js_injection_receiver.mm
@@ -9,9 +9,13 @@
#import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
#import "ios/web/public/web_state/js/crw_js_injection_manager.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation CRWJSInjectionReceiver {
// Used to evaluate JavaScripts.
- id<CRWJSInjectionEvaluator> _evaluator;
+ __weak id<CRWJSInjectionEvaluator> _evaluator;
// Map from a CRWJSInjectionManager class to its instance created for this
// receiver.
« no previous file with comments | « ios/web/web_state/js/crw_js_injection_manager.mm ('k') | ios/web/web_state/js/crw_js_plugin_placeholder_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698