[Instant Start] Pass TabModelSelector in StaticLayout's constructor.
The crash is caused by mTabModelSelector is null when StaticLayout#show() is called. However, the TabModelSelector should have been created before StaticLayout is created in LayoutManager#Init(). This CL refactors the StaticLayout by passing the TabModelSelector object to its constructor, rather than a TabModelSelectorSupplier. Bug: 1123448 Change-Id: I5184b23316690313fc27684d71f0766df47b007c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385980 Commit-Queue: Xi Han <hanxi@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#803685}
Showing
Please register or sign in to comment