ime: Fix ASAN/MSAN test failure for NativeInputMethodEngine browser tests.
The issue is that NativeInputMethodEngine observes ChromeKeyboardControllerClient, but in the browser tests, ChromeKeyboardControllerClient is deleted before NativeInputMethodEngine Change NativeInputMethodEngine to a pointer so that we can delete it before ChromeKeyboardControllerClient. We need to delete it in TearDownOnMainThread because that's when the ChromeKeyboardControllerClient is deleted. Bug: 1157432 Change-Id: I9f076ace3079b0fea2d7bda7a0fa780dade2a9c3 Fixed: 1157432 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586166 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:Jing Wang <jiwan@chromium.org> Cr-Commit-Position: refs/heads/master@{#835997}
Showing
Please register or sign in to comment