Commit 677722fc authored by gogerald's avatar gogerald Committed by Commit Bot

[StartSurface] Destroy incognito switch coordinator if needed

Bug: 1025296
Change-Id: Ic72b26024d7125587b3803d1d3bb7655cc0f7efe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013638
Auto-Submit: Ganggui Tang <gogerald@chromium.org>
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734258}
parent cc1fda7f
......@@ -43,6 +43,7 @@ class StartSurfaceToolbarCoordinator {
*/
void destroy() {
mToolbarMediator.destroy();
if (mIncognitoSwitchCoordinator != null) mIncognitoSwitchCoordinator.destroy();
}
/**
* @param appMenuButtonHelper The helper for managing menu button interactions.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment