Chromium Code Reviews
Descriptionmac: Fix unit test crash.
The test OmniboxPopupViewMacTest was crashing because of an invalid pointer
dereference. The root cause was that a base::scoped_nsobject member was captured
as an implicit parameter to an Obj-C block, which makes a raw copy of the |this|
pointer. I changed the captured parameter to be an Obj-C object, which
automatically gets retained/released.
BUG=551007, 560482
Committed: https://crrev.com/36c234e5d9647c2cf891ddcd574ea0078162ca79
Cr-Commit-Position: refs/heads/master@{#362184}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 9 (3 generated)
|
|||||||||||||||||||