Commit 0eaa6db3 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

mac: fix non-asan 10.15 sdk build

I missed this one incorrect call because it's not compiled when
is_asan. Oops!

Bug: 973128
Change-Id: I84346287759f13268cb97b1386463d2e363ae5d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913873Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715004}
parent 35ea3f2d
......@@ -315,8 +315,9 @@ static base::mac::ScopedObjCClassSwizzler* g_swizzle_imk_input_session;
// not have fatal OOM occur while this method executes, but it is better
// than crashing when using IME.
base::allocator::SetCallNewHandlerOnMallocFailure(false);
g_swizzle_imk_input_session->GetOriginalImplementation()(self, _cmd, range,
attributes, block);
g_swizzle_imk_input_session
->InvokeOriginal<void, NSRange, long long, void (^)(void)>(
self, _cmd, range, attributes, block);
base::allocator::SetCallNewHandlerOnMallocFailure(true);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment