This reverts commit 586ece5d2b35c881e7160a95538466204b03b267. commit 479c46912860e1cf1fb4624487322eca607a60ad Author: Jan Krcal <jkrcal@chromium.org> Date: Mon Nov 15 12:51:48 2021 +0000 Revert "[Avatar button] Dim the button when the window is in background" This reverts commit a004286d08ac95c80c0341ea2f93ea40efb285cd. Reason for revert: Unexpectedly high memory regression crbug.com/1269135 (350K) Original change's description: > [Avatar button] Dim the button when the window is in background > > This CL makes all modes of AvatarToolbarButton respect the color > specified by ToolbarButton::GetForegroundColor(state). To this end: > - in guest mode, the button uses the color as the stroke for the icon; > - in normal mode, the button extracts alpha value of the color and > applies that to whatever avatar icon is displayed (including custom > Chrome avatars, the GAIA avatars, and the default avatars, > potentially colored according to the theme color). > > Screenshots: > https://drive.google.com/drive/folders/1mwt5UWIrPBm8H2QLtRwsXLE1qVBDUp_n?resourcekey=0-V3FGpFsRvGZjPzasVTq5Kw&usp=sharing > > > Bug: 1198208 > Change-Id: Ia8c17d6550af1b26ded51b6dae758e3ffd2152c7 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3220331 > Commit-Queue: Jan Krcal <jkrcal@chromium.org> > Reviewed-by: Alex Ilin <alexilin@chromium.org> > Reviewed-by: Peter Boström <pbos@chromium.org> > Reviewed-by: Mitsuru Oshima <oshima@chromium.org> > Cr-Commit-Position: refs/heads/main@{#940486} # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 1198208