[Hera] Be smarter about dismissing the callout
The runnable can run after the Activity has already died, so be extra careful about getting rid of it. * Let the ToolbarPhone know when the Activity is destroyed when the ToolbarManager gets destroyed. * Keep track of the Handler and the Runnable that call #dismiss(), canceling it when necessary. * Only let the Runnable dismiss the PopupWindow when it still thinks it is showing. BUG=582539,607391 Review-Url: https://codereview.chromium.org/1932623002 Cr-Commit-Position: refs/heads/master@{#390303}
Showing
Please register or sign in to comment