Reland "Reland "Update avatar badge background color in sign-in interception bubbles""

This reverts commit 05458c3b02be8f91d645922b7388c34714a7588f.

Reason for revert: The failing browsertests from
dice_web_signin_interception_bubble_view_browsertest.cc have been adjusted
to explicitely provide a profile color that is used in the real flow
and meets the DCHECK requirements that we hit otherwise in [1].
Running all the failed builders in this CL (linux_chromium_asan_rel_ng,
win-rel,win11-rel,linux_chromium_cfi_rel_ng).

[1]: https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/color_utils.cc;l=644

Original change's description:
> Revert "Reland "Update avatar badge background color in sign-in interception bubbles""
>
> This reverts commit 480deeaa0b60ac72d5aabebc2164f333ebabee00.
>
> Reason for revert: Causing ASAN/LSAN test failures:
> https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20ASan%20LSan%20Tests%20(1)/129774/test-results?sortby=&groupby=
>
> Original change's description:
> > Reland "Update avatar badge background color in sign-in interception bubbles"
> >
> > This reverts commit 53b601431b57a4236f9b1e75d53959f548ad74c1.
> >
> > Reason for revert: No code changes necessary.
> > I have now approved the new reference images for the failing pixel tests. Triggering mega CQ & the win-rel builder that mirrors the failing builder Win10 Tests x64.
> >
> > Original change's description:
> > > Revert "Update avatar badge background color in sign-in interception bubbles"
> > >
> > > This reverts commit de0e29d561febd33ed35c81eb11bb765188492a6.
> > >
> > > Reason for revert: Likely culprit for test failures, see bug
> > >
> > > Bug: 382027496
> > >
> > >
> > > Original change's description:
> > > > Update avatar badge background color in sign-in interception bubbles
> > > >
> > > > The background color of the avatar badge is set to match the
> > > > the header image color of the container it belongs to.
> > > > This change applies to the badge for both supervised users (kite
> > > > icon) and enterprise users (domain icon) that are displayed in the
> > > > sign-in interception bubble.
> > > >
> > > > The color of the badge icon is also dynamically set and derived
> > > > from the profile highlight color using profile_colors_util's
> > > > `GetProfileForegroundIconColor`.
> > > >
> > > > Screenshot of the result:
> > > > https://screenshot.googleplex.com/78QHcreAZGuMon3
> > > > https://screenshot.googleplex.com/Ak5tNPn2CAa7Vsz
> > > > https://screenshot.googleplex.com/6HntySVXAMPNciA (dark)
> > > >
> > > > Bug: 379892923
> > > > Change-Id: I6953ec4ce195895fed7a4c675657f7b147b3d67a
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6062800
> > > > Reviewed-by: Nohemi Fernandez <fernandex@google.com>
> > > > Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
> > > > Reviewed-by: David Roger <droger@chromium.org>
> > > > Commit-Queue: Anthi Orfanou <anthie@google.com>
> > > > Cr-Commit-Position: refs/heads/main@{#1390899}
> > >
> > > Bug: 379892923
> > > Change-Id: If3b927d5d7cc1845c0dcef7f40b1560cbc6f88c8
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6063589
> > > Auto-Submit: Florian Jacky <fjacky@chromium.org>
> > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Owners-Override: Florian Jacky <fjacky@chromium.org>
> > > Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Cr-Commit-Position: refs/heads/main@{#1390950}
> >
> > Bug: 382027496
> > Bug: 379892923
> > Change-Id: I24a7c331367dcc314a6dfab262d4ff5fab8e9856
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6063592
> > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > Reviewed-by: David Roger <droger@chromium.org>
> > Commit-Queue: Anthi Orfanou <anthie@google.com>
> > Cr-Commit-Position: refs/heads/main@{#1391733}
>
> Bug: 382027496
> Bug: 379892923
> Change-Id: I87fc9c03911361d02b02400f645510e38a4c9a2e
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6070759
> Commit-Queue: Thomas Guilbert <tguilbert@chromium.org>
> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org>
> Owners-Override: Thomas Guilbert <tguilbert@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Cr-Commit-Position: refs/heads/main@{#1391806}

Bug: 382027496, 379892923
Change-Id: I9137e9e0f0ff64e5b0c8d61095098473aab10fa1
Cq-Include-Trybots: luci.chromium.try:linux_chromium_asan_rel_ng,win-rel,win11-rel,linux_chromium_cfi_rel_ng
Include-Ci-Only-Tests: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6074533
Reviewed-by: David Roger <droger@chromium.org>
Commit-Queue: Anthi Orfanou <anthie@google.com>
Cr-Commit-Position: refs/heads/main@{#1392797}
8 files changed
tree: fcc1a6f6aa6594f42af21042dfebecc35e776f2e
  1. android_webview/
  2. apps/
  3. ash/
  4. base/
  5. build/
  6. build_overrides/
  7. buildtools/
  8. cc/
  9. chrome/
  10. chromecast/
  11. chromeos/
  12. codelabs/
  13. components/
  14. content/
  15. crypto/
  16. dbus/
  17. device/
  18. docs/
  19. extensions/
  20. fuchsia_web/
  21. gin/
  22. google_apis/
  23. gpu/
  24. headless/
  25. infra/
  26. ios/
  27. ipc/
  28. media/
  29. mojo/
  30. native_client_sdk/
  31. net/
  32. pdf/
  33. ppapi/
  34. printing/
  35. remoting/
  36. rlz/
  37. sandbox/
  38. services/
  39. skia/
  40. sql/
  41. storage/
  42. styleguide/
  43. testing/
  44. third_party/
  45. tools/
  46. ui/
  47. url/
  48. webkit/
  49. .clang-format
  50. .clang-tidy
  51. .clangd
  52. .git-blame-ignore-revs
  53. .gitallowed
  54. .gitattributes
  55. .gitignore
  56. .gitmodules
  57. .gn
  58. .mailmap
  59. .rustfmt.toml
  60. .vpython3
  61. .yapfignore
  62. ATL_OWNERS
  63. AUTHORS
  64. BUILD.gn
  65. CODE_OF_CONDUCT.md
  66. codereview.settings
  67. CPPLINT.cfg
  68. CRYPTO_OWNERS
  69. DEPS
  70. DIR_METADATA
  71. LICENSE
  72. LICENSE.chromium_os
  73. OWNERS
  74. PRESUBMIT.py
  75. PRESUBMIT_test.py
  76. PRESUBMIT_test_mocks.py
  77. README.md
  78. WATCHLISTS
README.md

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure.

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.