[Instant Start] Fix observer setup in TabListMediator
Since with instant start TabListMediator could be created before native is ready, we can no longer depend on looking at the type of current TabModelFilter in TabListMediator constructor for observer setup. Therefore, this CL moves the observer setup to initWithNative() where we are confident about using the type of TabModelFilter to decide whether we should set up observers for tab group. Bug: 1125451, 1125471 Change-Id: If156674137d64b829728402555e2cf4e06916519 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429467Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:
Mei Liang <meiliang@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#810703}
Showing
Please register or sign in to comment