Revert "[Instant Start] Create ToolbarManger before showing overview."
This reverts commit a47390a0. Reason for revert: "Instant_Return" related tests fail in a couple of android builders. For examples: https://ci.chromium.org/p/chromium/builders/ci/Lollipop%20Phone%20Tester/25649 https://ci.chromium.org/p/chromium/builders/ci/android-arm64-proguard-rel/1907 Original change's description: > [Instant Start] Create ToolbarManger before showing overview. > > In this CL, we introduce an additional state in InflationObserver: > onInflationComplete. This event happens between onPreInflationStartup > and onPostInflationStartup, thus provides a way to split the > implementation of onPostInflationStartup into two methods. > > In RootUiCoordinatior, the ToolbarManger is created in > onInflationComplete, and ChromeTabbedActivity calls showOverview() > after RootUiCoordinatior#onInflationComplete but before initializing > other components in onPostInflationStartup. Thus, ToolbarManager setups > an OverviewModeObserver and won't lose any early events that an > overview is shown or overview mode is changed. > > Bug: 1077022 > Change-Id: I6bc8b96906a9519a928c6490bec0ca158b3d6241 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2181667 > Reviewed-by: Matthew Jones <mdjones@chromium.org> > Reviewed-by: Yaron Friedman <yfriedman@chromium.org> > Reviewed-by: Ender <ender@google.com> > Reviewed-by: Wei-Yin Chen (陳威尹) <wychen@chromium.org> > Commit-Queue: Xi Han <hanxi@chromium.org> > Cr-Commit-Position: refs/heads/master@{#776073} TBR=yfriedman@chromium.org,hanxi@chromium.org,mdjones@chromium.org,wychen@chromium.org,ender@google.com Change-Id: I826c512c34d8e945d9cea6dcada8da023d840d1e No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1077022 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2236946Reviewed-by:Haiyang Pan <hypan@google.com> Commit-Queue: Haiyang Pan <hypan@google.com> Cr-Commit-Position: refs/heads/master@{#776309}
Showing
Please register or sign in to comment