[NTP Client] Check we are on the NTP after dismissal animation.
When dismissing a suggestion through the context menu, it is possible that by the time the animation ends, we navigated away from the NTP and it got destroyed, resulting in an NPE. We now exit early when that is the case. This CL also reverts the ineffective tentative fix from https://codereview.chromium.org/2553163002 BUG=668945 Review-Url: https://codereview.chromium.org/2614753002 Cr-Commit-Position: refs/heads/master@{#441917}
Showing
Please register or sign in to comment