Bind a weak ptr for the search result to resolve the crash issue.
The icon callback may outlive ArcAppShortcutSearchResult, so bind the callback to a weak ptr. BUG=1114754 Change-Id: If261827920d5a4780a80695095937a9f7dd59c5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2348492Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#796845}
Showing
Please register or sign in to comment