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

Unified Diff: ios/web/web_state/js/crw_js_injection_manager.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
« no previous file with comments | « ios/web/web_state/js/credential_util.mm ('k') | ios/web/web_state/js/crw_js_injection_receiver.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/js/crw_js_injection_manager.mm
diff --git a/ios/web/web_state/js/crw_js_injection_manager.mm b/ios/web/web_state/js/crw_js_injection_manager.mm
index 416712668433d98a721e39911f878b497f071e49..9ef0c7eb6695f9c4c402f3f7bac8b4c7567cb2b9 100644
--- a/ios/web/web_state/js/crw_js_injection_manager.mm
+++ b/ios/web/web_state/js/crw_js_injection_manager.mm
@@ -13,12 +13,16 @@
#import "ios/web/public/web_state/js/crw_js_injection_receiver.h"
#import "ios/web/web_state/js/page_script_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation CRWJSInjectionManager {
// JS to inject into the page. This may be nil if it has been purged due to
// low memory.
base::scoped_nsobject<NSString> _injectObject;
// An object the can receive JavaScript injection.
- CRWJSInjectionReceiver* _receiver; // Weak.
+ __weak CRWJSInjectionReceiver* _receiver;
}
- (id)initWithReceiver:(CRWJSInjectionReceiver*)receiver {
@@ -38,7 +42,6 @@
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
- [super dealloc];
}
- (BOOL)hasBeenInjected {
« no previous file with comments | « ios/web/web_state/js/credential_util.mm ('k') | ios/web/web_state/js/crw_js_injection_receiver.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698