[Instant Start] Fix bug in GridTabSwitcher initialization (1)
In TabListMediator, TabModelObserver is registered in constructor. This assumes that when constructor is called, the TabModel side should be ready to accept observers, which is no longer true with instant start as the constructor for TabListMediator for GridTabSwitcher is now called before native is ready. This CL fixes this issue by registering the TabModelObserver after native is ready. Bug: 1110783 Change-Id: Ia944a1cb7fef30933b4094adb1045e664e3df1a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2328038Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#795511}
Showing
Please register or sign in to comment