[iOS] Add support for kFillAutofillAi in AutofillAgent [chromium/src : main]

0 views
Skip to first unread message

Alexis Hétu (Gerrit)

unread,
Feb 6, 2026, 4:52:20 PM (20 hours ago) Feb 6
to Sebastien S-G, Vincent Boisselle, chromium...@chromium.org, browser-comp...@chromium.org, ios-r...@chromium.org, tmartino+tran...@chromium.org
Attention needed from Sebastien S-G and Vincent Boisselle

Alexis Hétu voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Sebastien S-G
  • Vincent Boisselle
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia5298ba0881188b84baa6924f42b05274f52f64e
Gerrit-Change-Number: 7551312
Gerrit-PatchSet: 1
Gerrit-Owner: Alexis Hétu <su...@chromium.org>
Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
Gerrit-Reviewer: Sebastien S-G <se...@chromium.org>
Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
Gerrit-Attention: Sebastien S-G <se...@chromium.org>
Gerrit-Attention: Vincent Boisselle <vi...@google.com>
Gerrit-Comment-Date: Fri, 06 Feb 2026 21:52:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Sebastien S-G (Gerrit)

unread,
Feb 6, 2026, 5:23:50 PM (19 hours ago) Feb 6
to Alexis Hétu, Chromium LUCI CQ, Vincent Boisselle, chromium...@chromium.org, browser-comp...@chromium.org, ios-r...@chromium.org, tmartino+tran...@chromium.org
Attention needed from Alexis Hétu and Vincent Boisselle

Sebastien S-G voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alexis Hétu
  • Vincent Boisselle
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia5298ba0881188b84baa6924f42b05274f52f64e
Gerrit-Change-Number: 7551312
Gerrit-PatchSet: 1
Gerrit-Owner: Alexis Hétu <su...@chromium.org>
Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
Gerrit-Reviewer: Sebastien S-G <se...@chromium.org>
Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
Gerrit-Attention: Alexis Hétu <su...@chromium.org>
Gerrit-Attention: Vincent Boisselle <vi...@google.com>
Gerrit-Comment-Date: Fri, 06 Feb 2026 22:23:45 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Vincent Boisselle (Gerrit)

unread,
6:51 AM (6 hours ago) 6:51 AM
to Alexis Hétu, Sebastien S-G, Chromium LUCI CQ, chromium...@chromium.org, browser-comp...@chromium.org, ios-r...@chromium.org, tmartino+tran...@chromium.org
Attention needed from Alexis Hétu

Vincent Boisselle voted and added 2 comments

Votes added by Vincent Boisselle

Code-Review+1

2 comments

File components/autofill/ios/browser/autofill_agent.mm
Line 170, Patchset 1 (Latest): return std::visit(
Vincent Boisselle . unresolved

There is also the absl::Overload alternative that is bit less cryptic, but we don't really have specific guidance for choosing one over the other

```
bool HasGuid(const Suggestion::Payload& payload) {
return std::visit(absl::Overload{
// Duplicated logic for these two types
[](const Suggestion::AutofillProfilePayload& p) { return !p.guid.value().empty(); },
[](const Suggestion::AutofillAiPayload& p) { return !p.guid.value().empty(); },
      [](const Suggestion::Guid& p) { return !p.value().empty(); },
[](const auto&) { return false; } // Catch-all
}, payload);
}
```

up to you

Example: https://source.chromium.org/chromium/chromium/src/+/main:components/autofill/core/browser/foundations/browser_autofill_manager.cc;l=2797;drc=a636e7dace1ec22bdd5eb4ab27ccbca9712020d3

Line 414, Patchset 1 (Latest): (base::FeatureList::IsEnabled(
autofill::features::kAutofillAiServerModel) &&
suggestion.type == SuggestionType::kFillAutofillAi)) {
Vincent Boisselle . unresolved

note that is usually be to but the feature flag at the very end in a chain of conditions, but in this case I think it doesn't really matter,

the idea being to only trigger (enroll the client into the an experimental group) when the feature is usable

but kFillAutofillAi is probably triggered way before this

Open in Gerrit

Related details

Attention is currently required from:
  • Alexis Hétu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ia5298ba0881188b84baa6924f42b05274f52f64e
    Gerrit-Change-Number: 7551312
    Gerrit-PatchSet: 1
    Gerrit-Owner: Alexis Hétu <su...@chromium.org>
    Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
    Gerrit-Reviewer: Sebastien S-G <se...@chromium.org>
    Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
    Gerrit-Attention: Alexis Hétu <su...@chromium.org>
    Gerrit-Comment-Date: Sat, 07 Feb 2026 11:51:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages