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

Unified Diff: ios/chrome/test/base/scoped_block_swizzler.mm

Issue 2882113004: [ObjC ARC] Converts ios/chrome/test/base:base to ARC. (Closed)
Patch Set: Created 3 years, 7 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/test/base/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/base/scoped_block_swizzler.mm
diff --git a/ios/chrome/test/base/scoped_block_swizzler.mm b/ios/chrome/test/base/scoped_block_swizzler.mm
index 7ce6f6a723a6367f3e0fd7fb6a0499c807a79c42..2f2bee398a660bcbd819e5ce97dc94795bd740dc 100644
--- a/ios/chrome/test/base/scoped_block_swizzler.mm
+++ b/ios/chrome/test/base/scoped_block_swizzler.mm
@@ -6,6 +6,10 @@
#include "base/logging.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
ScopedBlockSwizzler::ScopedBlockSwizzler(Class target, SEL selector, id block) {
method_ = class_getInstanceMethod(target, selector);
if (!method_) {
« no previous file with comments | « ios/chrome/test/base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698