[AutofillAi] AI features have enterprise icon Problem: AutofillAi page should be available when the enterprise feature is off. In this case, an enterprise icon should be displayed. Solution: There are a couple of ways of implementing this. The most obvious one would be to reuse the settings-toggle component directly, however AI features have their enterprise information represented in a standalone pref. On the the other hand, settings-toggle expects a single pref, both that controls the feature and also has enterprise data. Because of this the decision was to reuse the existing "fake pref" that AutofillAi has. It essentially extends it to also contain enterprise pref data, therefore things work out of the box. Screenshot: https://screenshot.googleplex.com/BfGupVZBf7LgX4r Mocks: https://docs.google.com/presentation/d/13ME6mEoMmmrpwHsBDeV3kwyTaIxYHwdARafGhgbdKEA/edit?slide=id.g2af45484ef1_1_72&resourcekey=0-CLzUtm4o6vLiVYDDBEkFPg#slide=id.g2af45484ef1_1_72 Bug: 414779594 Change-Id: I15e92c6526ec8fbd2bcf664916fc047723a783ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6543095 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by: Jan Keitel <jkeitel@google.com> Commit-Queue: Bruno Braga <brunobraga@google.com> Cr-Commit-Position: refs/heads/main@{#1466646}
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.