From 0b7f85234f13b9e644cb63be4b560a26e0c09c2e Mon Sep 17 00:00:00 2001 From: "tapted@chromium.org" Date: Tue, 12 Aug 2014 12:03:48 +0000 Subject: Add ScopedObjCClassSwizzler in base/mac, absorbs objc_method_swizzle and ScopedClassSwizzler ScopedClassSwizzler from ui/test is wanted for new tests where it can't currently be accessed. It also re-implements a concept in chrome/common/mac/objc_method_swizzle.* This change adds base::mac::ScopedObjCClassSwizzler, merges concepts from objc_method_swizzle, and adjusts chrome_browser_application_mac.mm to use the new swizzler. The test from objc_method_swizzle is adapted and extended for the scoped swizzler. BUG=378134 TEST=base_unittests Review URL: https://codereview.chromium.org/345243007 Cr-Commit-Position: refs/heads/master@{#288943} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288943 0039d316-1c4b-4281-b951-d872f2087c98 --- base/base.gypi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'base/base.gypi') diff --git a/base/base.gypi b/base/base.gypi index 7560e8f..fd64aef 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -304,6 +304,8 @@ 'mac/scoped_nsexception_enabler.h', 'mac/scoped_nsexception_enabler.mm', 'mac/scoped_nsobject.h', + 'mac/scoped_objc_class_swizzler.h', + 'mac/scoped_objc_class_swizzler.mm', 'mac/scoped_sending_event.h', 'mac/scoped_sending_event.mm', 'mac/scoped_typeref.h', -- cgit v1.1