[WebUI][NTP] Fixes crash in AutocompleteController::StopHelper
The crash in crbug/1086749 is likely due to the page method calls being handled after destruction of |autocomplete_controller_|. mojo::Receiver guarantees that page method calls will NEVER run beyond the lifetime of the receiver object. Moving the Receiver (as well as the Remote) member variable toward the end of the list of member variables should fix this crash as the receiver object gets destroyed first. Bug: 1086749 Change-Id: I42d1229416e5909c4f3b9bd187a4db2da88b7d2a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2217211 Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#772285}
Showing
Please register or sign in to comment