[Spellcheck] Fix spell check browser tests
When I attempted to submit the field trial test for the Windows native spell checker integration, the try bots picked up several crashes in existing tests when the native spell checker flags are enabled in Chrome: https://cr-buildbucket.appspot.com/build/8891251817173916304 The crashes were caused by the use of raw pointers instead of weak pointers, because the SpellcheckHunspellDictionary object was deleted by the time the callback from PlatformSupportsLanguage() was invoked. Change-Id: I8ac2afa9b66a11a2846a086f23d024ce380f77eb Bug: 463364, Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003087Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Guillaume Jenkins <gujen@google.com> Auto-Submit: Guillaume Jenkins <gujen@google.com> Cr-Commit-Position: refs/heads/master@{#732910}
Showing
Please register or sign in to comment