Index: ios/chrome/browser/ui/stack_view/close_button.mm |
diff --git a/ios/chrome/browser/ui/stack_view/close_button.mm b/ios/chrome/browser/ui/stack_view/close_button.mm |
index 45ff4f353afa49a7efd4198321591db427ca9f34..c272c305ed31b77632ab58f9ddbc899ac52ec0d3 100644 |
--- a/ios/chrome/browser/ui/stack_view/close_button.mm |
+++ b/ios/chrome/browser/ui/stack_view/close_button.mm |
@@ -6,8 +6,12 @@ |
#include "base/logging.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
@implementation CloseButton { |
- id _accessibilityTarget; // weak |
+ __weak id _accessibilityTarget; |
SEL _accessibilityAction; |
} |
@@ -20,7 +24,10 @@ |
} |
- (void)accessibilityElementDidBecomeFocused { |
+#pragma clang diagnostic push |
+#pragma clang diagnostic ignored "-Warc-performSelector-leaks" |
[_accessibilityTarget performSelector:_accessibilityAction withObject:self]; |
+#pragma clang diagnostic pop |
} |
@end |