[Feed] Unregister contextMenuListener and make BasicSnackbarApi static
The FeedNewTabPage previously added a context menu close listener to the WindowAndroid without removing it, causing a memory leak. Remove the context menu close listener in #destroy(). Also make BasicSnackbarApi static so that if the Feed session cache holds on to it the entire FeedNewTabPage isn't kept in memory. BUG=881954 Change-Id: I55c86e66c785c7ce70157454575a16bd8e5d15c6 Reviewed-on: https://chromium-review.googlesource.com/1217102Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#589996}
Showing
Please register or sign in to comment