[iOS] Add AutofillAIEntityEditMediatorDelegate [chromium/src : main]

0 views
Skip to first unread message

Alexis Hétu (Gerrit)

unread,
Apr 17, 2026, 2:04:07 PM (6 days ago) Apr 17
to Vidhan Jain, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Vidhan Jain

Alexis Hétu added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Alexis Hétu . unresolved

I'm fine with the change, but you'll need to fix the tests.

Open in Gerrit

Related details

Attention is currently required from:
  • Vidhan Jain
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6d7b43ef53f31fb0e58dd4fb94549a387a0fbc0f
Gerrit-Change-Number: 7768911
Gerrit-PatchSet: 4
Gerrit-Owner: Vidhan Jain <vid...@google.com>
Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
Gerrit-Attention: Vidhan Jain <vid...@google.com>
Gerrit-Comment-Date: Fri, 17 Apr 2026 18:04:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Vidhan Jain (Gerrit)

unread,
9:34 AM (6 hours ago) 9:34 AM
to Alexis Hétu, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Alexis Hétu

Vidhan Jain added 1 comment

Patchset-level comments
File-level comment, Patchset 4:
Alexis Hétu . resolved

I'm fine with the change, but you'll need to fix the tests.

Vidhan Jain

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Alexis Hétu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I6d7b43ef53f31fb0e58dd4fb94549a387a0fbc0f
    Gerrit-Change-Number: 7768911
    Gerrit-PatchSet: 5
    Gerrit-Owner: Vidhan Jain <vid...@google.com>
    Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
    Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
    Gerrit-Attention: Alexis Hétu <su...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Apr 2026 13:34:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alexis Hétu <su...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alexis Hétu (Gerrit)

    unread,
    11:13 AM (4 hours ago) 11:13 AM
    to Vidhan Jain, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
    Attention needed from Vidhan Jain

    Alexis Hétu voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vidhan Jain
    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: I6d7b43ef53f31fb0e58dd4fb94549a387a0fbc0f
      Gerrit-Change-Number: 7768911
      Gerrit-PatchSet: 5
      Gerrit-Owner: Vidhan Jain <vid...@google.com>
      Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
      Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
      Gerrit-Attention: Vidhan Jain <vid...@google.com>
      Gerrit-Comment-Date: Thu, 23 Apr 2026 15:13:13 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Vidhan Jain (Gerrit)

      unread,
      11:17 AM (4 hours ago) 11:17 AM
      to Alexis Hétu, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

      Vidhan Jain voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      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: I6d7b43ef53f31fb0e58dd4fb94549a387a0fbc0f
      Gerrit-Change-Number: 7768911
      Gerrit-PatchSet: 5
      Gerrit-Owner: Vidhan Jain <vid...@google.com>
      Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
      Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
      Gerrit-Comment-Date: Thu, 23 Apr 2026 15:17:39 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      11:21 AM (4 hours ago) 11:21 AM
      to Vidhan Jain, Alexis Hétu, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [iOS] Add AutofillAIEntityEditMediatorDelegate

      Because iOS Settings operate natively outside of a WebState context, the
      AutofillAIEntityEditMediator relies on injected KeyedServices and lacks
      direct access to a `Profile*`. Therefore, it could not easily evaluate
      `autofill::CanPerformAutofillAiAction` to ensure the user is still
      eligible to save to Google Wallet.

      To resolve this cleanly without coupling the Mediator to the Profile:
      1. Introduced `AutofillAIEntityEditMediatorDelegate` with a
      `canPerformWalletSaveForType:` method.
      2. `AutofillAIEntityEditCoordinator` now conforms to this protocol,
      leveraging its access to `Browser` and `Profile` to call
      `CanPerformAutofillAiAction`.
      3. `AutofillAIEntityEditMediator` queries its delegate immediately
      before triggering an asynchronous Wallet save. This guards against
      edge cases where the user's eligibility changes (e.g., signing out
      in another tab) while the settings view remains open.
      Bug: 496450943
      Change-Id: I6d7b43ef53f31fb0e58dd4fb94549a387a0fbc0f
      Commit-Queue: Vidhan Jain <vid...@google.com>
      Reviewed-by: Alexis Hétu <su...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1619535}
      Files:
      Change size: M
      Delta: 4 files changed, 69 insertions(+), 19 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Alexis Hétu
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I6d7b43ef53f31fb0e58dd4fb94549a387a0fbc0f
      Gerrit-Change-Number: 7768911
      Gerrit-PatchSet: 6
      Gerrit-Owner: Vidhan Jain <vid...@google.com>
      Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages