DescriptionAdd 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288943
Patch Set 1 #Patch Set 2 : Neater #Patch Set 3 : rebase to master #
Total comments: 9
Patch Set 4 : just a rebase #Patch Set 5 : Everything but the file moves #Patch Set 6 : respond to comments #Patch Set 7 : just a rebase #Patch Set 8 : drop coord conversion test, CR_DEFINE_STATIC_LOCAL #Patch Set 9 : git-cl-format #Patch Set 10 : Fix EventsMacTest.ButtonEvents #
Total comments: 1
Patch Set 11 : Add overloaded constructor #Patch Set 12 : rebase - patch conflict in event_generator_delegate_mac.mm (r288663) #Patch Set 13 : Inlude in shiny new gn base_unittests target #
Messages
Total messages: 35 (0 generated)
|