Fix bug showing incognito toggle button in accessibility switcher

When the Android horizontal tab switcher experiment is enabled, we add an
incognito toggle button to the toolbar. We're currently showing this even when
we're using the accessibility switcher layout, where the button is duplicative
of the current incognito UI.

This CL adds a check to make sure we don't show the button in this case.

Bug: 851135
Change-Id: Icee461ee0861ea60471847395e9c3833caebbd97
Commit-Queue: Ryan Landay <>
Reviewed-by: Ted Choc <>
Cr-Commit-Position: refs/heads/master@{#565798}
1 file changed