Avoid exposing StartSurface.OverviewModeObserver in StartSurfaceLayout
This is a follow up for crrev.com/c/2483031. StartSurfaceLayout implements StartSurface.OverviewModeObserver#finishedShowing and overrides Layout#doneShowing. These two methods have similar names, and doneShowing() depends on finishedShowing(). It is hard to reason about without a dive in investigation. This CL avoids the confusion between these two methods by modifying StartSurfaceLayout to stop implementing StartSurface.OverviewModeObserver. Instead, StartSurfaceLayout instantiates a StartSurface.OverviewModeObserver member and attaches that member instance to StartSurfaceController directly. Change-Id: I5904513b5fcd72fef3b571ecb513c334bd4a2d06 Bug: 1108496 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503392 Commit-Queue: Mei Liang <meiliang@chromium.org> Auto-Submit: Mei Liang <meiliang@chromium.org> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#823852}
Showing
Please register or sign in to comment