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

Unified Diff: ios/chrome/browser/ui/contextual_search/window_gesture_observer.mm

Issue 2626073003: [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:contextual_search to ARC. (Closed)
Patch Set: format Created 3 years, 11 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/chrome/browser/ui/contextual_search/window_gesture_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/contextual_search/window_gesture_observer.mm
diff --git a/ios/chrome/browser/ui/contextual_search/window_gesture_observer.mm b/ios/chrome/browser/ui/contextual_search/window_gesture_observer.mm
index 0ef504e8114087cc42992b25b0d97e3076c5df6c..9a89c05732f20c69af9ae1302bd77e6d21fb0a53 100644
--- a/ios/chrome/browser/ui/contextual_search/window_gesture_observer.mm
+++ b/ios/chrome/browser/ui/contextual_search/window_gesture_observer.mm
@@ -4,6 +4,10 @@
#include "ios/chrome/browser/ui/contextual_search/window_gesture_observer.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation WindowGestureObserver {
NSObject* _target;
SEL _action;
@@ -42,11 +46,16 @@
if (![[touch view] isDescendantOfView:_viewToExclude]) {
_touchedView = [touch view];
dispatch_async(dispatch_get_main_queue(), ^{
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
if (_actionPassesSelf) {
[_target performSelector:_action withObject:self];
} else {
[_target performSelector:_action];
}
+#pragma clang diagnostic pop
+
});
// Only invoke from the first qualifying touch.
break;
« no previous file with comments | « ios/chrome/browser/ui/contextual_search/window_gesture_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698