Commit aae49f3b authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Hide the incognito icon in the window frame for Refresh.

Incognito state is indicated by the avatar button in the toolbar.

BUG=822070
TEST=none

Change-Id: Ib87a4f8dbc6e89694277e40fa0f4143ad8e25496
Reviewed-on: https://chromium-review.googlesource.com/1029255Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553880}
parent 16b55f6f
......@@ -422,6 +422,11 @@ void BrowserNonClientFrameView::UpdateTaskbarDecoration() {
}
bool BrowserNonClientFrameView::ShouldShowProfileIndicatorIcon() const {
// In Material Refresh, we use a toolbar button for all
// profile/incognito-related purposes.
if (MD::GetMode() == MD::MATERIAL_REFRESH)
return false;
Browser* browser = browser_view()->browser();
Profile* profile = browser->profile();
const bool is_incognito =
......
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