Split NewTabPageLayout#initialize's Tab parameter into 2 parameters.
The Tab is only used to get the activity and overview mode behavior. Let the consumers (NewTabPageView and FeedNewTabPage) handle instanceof and null checks and pass in the two new parameters. R=yusufo@chromium.org Bug: 985386 Change-Id: Id760dabc41a3c08cf37b0e72a8d6513003b5b88a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1741965Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Commit-Queue: Matt Simmons <mattsimmons@chromium.org> Cr-Commit-Position: refs/heads/master@{#685357}
Showing
Please register or sign in to comment