[Context menu] Attempt to fix NPE in mOnMenuClosed
When ContextMenuHelper#setPopulatorFactory is called, the current ContextMenuPopulator is destroyed. If a context menu was showing when dismissed after the populator is destroyed. This is because the populator is accessed when the context menu is dismissed. This CL holds a reference to the current context menu and dismisses it in #setPopulatorFactory. Bug: 1133172 Change-Id: I879a4278c045c3a4c9028b9b4825b5cd497a5e9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446775Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Sinan Sahin <sinansahin@google.com> Cr-Commit-Position: refs/heads/master@{#813407}
Showing
Please register or sign in to comment