Log Wallet private pass consent from settings [chromium/src : main]

0 views
Skip to first unread message

Florian Leimgruber (Gerrit)

unread,
Apr 1, 2026, 8:36:56 AM (yesterday) Apr 1
to Vidhan Jain, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Vidhan Jain

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Vidhan Jain
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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
Gerrit-Change-Number: 7719739
Gerrit-PatchSet: 2
Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
Gerrit-Attention: Vidhan Jain <vid...@google.com>
Gerrit-Comment-Date: Wed, 01 Apr 2026 12:36:39 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Vidhan Jain (Gerrit)

unread,
Apr 1, 2026, 9:03:11 AM (yesterday) Apr 1
to Florian Leimgruber, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Florian Leimgruber

Vidhan Jain added 3 comments

File chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
Line 1202, Patchset 2 (Latest): consent_auditor::ConsentAuditor::SessionId session_id;
Vidhan Jain . unresolved

Default to `ConsentAuditor::GenerateSessionId()`?

Line 1213, Patchset 2 (Latest): entity_instance, consent_auditor::ConsentAuditor::GenerateSessionId(),
Vidhan Jain . unresolved

`session_id`?

File chrome/browser/extensions/api/autofill_private/autofill_private_api_unittest.cc
Line 670, Patchset 2 (Latest): EXPECT_CALL(consent_auditor(), RecordWalletPrivatePassConsent);
Vidhan Jain . unresolved

We could update the mock expectations to capture the session_id returned by `RecordWalletPrivatePassConsent` and verify that the exact same ID is passed into `SaveWalletEntityInstance`?

Open in Gerrit

Related details

Attention is currently required from:
  • Florian Leimgruber
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
    Gerrit-Change-Number: 7719739
    Gerrit-PatchSet: 2
    Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
    Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 13:02:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vidhan Jain (Gerrit)

    unread,
    Apr 1, 2026, 9:12:14 AM (yesterday) Apr 1
    to Florian Leimgruber, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from Florian Leimgruber

    Vidhan Jain added 1 comment

    File chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
    Line 1202, Patchset 2: consent_auditor::ConsentAuditor::SessionId session_id;
    Vidhan Jain . resolved

    Default to `ConsentAuditor::GenerateSessionId()`?

    Vidhan Jain

    On a second thought, it makes sense to use the placeholder value when `kWalletApiPrivatePassesConsent` is disabled. I assume we don't log the consent in that case.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Florian Leimgruber
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
    Gerrit-Change-Number: 7719739
    Gerrit-PatchSet: 3
    Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
    Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 13:11:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Vidhan Jain <vid...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Florian Leimgruber (Gerrit)

    unread,
    Apr 1, 2026, 9:25:35 AM (yesterday) Apr 1
    to Vidhan Jain, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from Vidhan Jain

    Florian Leimgruber voted and added 3 comments

    Votes added by Florian Leimgruber

    Commit-Queue+1

    3 comments

    File chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
    Line 1202, Patchset 2: consent_auditor::ConsentAuditor::SessionId session_id;
    Vidhan Jain . resolved

    Default to `ConsentAuditor::GenerateSessionId()`?

    Florian Leimgruber

    Exactly, it doesn't matter. The current implementation just constructs an invalid ID - but since it's never read when kWalletApiPrivatePassesConsent is disabled, that's ok.

    Line 1213, Patchset 2: entity_instance, consent_auditor::ConsentAuditor::GenerateSessionId(),
    Vidhan Jain . resolved

    `session_id`?

    Florian Leimgruber

    Thanks, done 🤦‍♂️

    File chrome/browser/extensions/api/autofill_private/autofill_private_api_unittest.cc
    Line 670, Patchset 2: EXPECT_CALL(consent_auditor(), RecordWalletPrivatePassConsent);
    Vidhan Jain . resolved

    We could update the mock expectations to capture the session_id returned by `RecordWalletPrivatePassConsent` and verify that the exact same ID is passed into `SaveWalletEntityInstance`?

    Florian Leimgruber

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vidhan Jain
    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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
      Gerrit-Change-Number: 7719739
      Gerrit-PatchSet: 4
      Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
      Gerrit-Attention: Vidhan Jain <vid...@google.com>
      Gerrit-Comment-Date: Wed, 01 Apr 2026 13:25:22 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Vidhan Jain <vid...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Vidhan Jain (Gerrit)

      unread,
      Apr 1, 2026, 9:45:20 AM (yesterday) Apr 1
      to Florian Leimgruber, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
      Attention needed from Florian Leimgruber

      Vidhan Jain voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Florian Leimgruber
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Gerrit-Change-Number: 7719739
        Gerrit-PatchSet: 4
        Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Comment-Date: Wed, 01 Apr 2026 13:45:02 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Florian Leimgruber (Gerrit)

        unread,
        Apr 1, 2026, 9:49:50 AM (yesterday) Apr 1
        to Viktor Semeniuk, Vidhan Jain, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Viktor Semeniuk

        Florian Leimgruber voted and added 1 comment

        Votes added by Florian Leimgruber

        Commit-Queue+1

        1 comment

        Patchset-level comments
        File-level comment, Patchset 5 (Latest):
        Florian Leimgruber . resolved

        Hi Viktor, could you PTAL at the comment changes in chrome/browser/resources/settings/autofill_page/*?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Viktor Semeniuk
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Gerrit-Change-Number: 7719739
        Gerrit-PatchSet: 5
        Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
        Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
        Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
        Gerrit-Comment-Date: Wed, 01 Apr 2026 13:49:37 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Florian Leimgruber (Gerrit)

        unread,
        5:47 AM (9 hours ago) 5:47 AM
        to Viktor Semeniuk, Vidhan Jain, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Viktor Semeniuk

        Florian Leimgruber added 1 comment

        Patchset-level comments
        Florian Leimgruber . resolved

        ping

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Viktor Semeniuk
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Gerrit-Change-Number: 7719739
        Gerrit-PatchSet: 5
        Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
        Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
        Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 09:47:42 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Viktor Semeniuk (Gerrit)

        unread,
        6:05 AM (9 hours ago) 6:05 AM
        to Florian Leimgruber, Vidhan Jain, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Florian Leimgruber

        Viktor Semeniuk voted and added 1 comment

        Votes added by Viktor Semeniuk

        Code-Review+1

        1 comment

        Patchset-level comments
        Viktor Semeniuk . resolved

        LGTM, thanks

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Florian Leimgruber
        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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Gerrit-Change-Number: 7719739
        Gerrit-PatchSet: 5
        Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
        Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 10:05:31 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Florian Leimgruber (Gerrit)

        unread,
        6:13 AM (9 hours ago) 6:13 AM
        to Viktor Semeniuk, Vidhan Jain, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

        Florian Leimgruber 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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Gerrit-Change-Number: 7719739
        Gerrit-PatchSet: 5
        Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
        Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 10:13:31 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        6:16 AM (9 hours ago) 6:16 AM
        to Florian Leimgruber, Viktor Semeniuk, Vidhan Jain, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        Log Wallet private pass consent from settings

        See the description of crrev.com/c/7698856 for some general context
        around consent logging for Wallet private passes.

        This CL implements logging the consent for newly created Wallet private
        passes from settings, by calling RecordWalletPrivatePassConsent() with
        hardcoded string IDs of the save dialog before calling the Wallet API.
        See crrev.com/c/7706320 as for why the string IDs need to be hardcoded.
        Bug: 489354073
        Change-Id: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Reviewed-by: Vidhan Jain <vid...@google.com>
        Reviewed-by: Viktor Semeniuk <vsem...@google.com>
        Commit-Queue: Florian Leimgruber <fleim...@google.com>
        Cr-Commit-Position: refs/heads/main@{#1609083}
        Files:
        • M chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
        • M chrome/browser/extensions/api/autofill_private/autofill_private_api_unittest.cc
        • M chrome/browser/resources/settings/autofill_page/autofill_ai_add_or_edit_dialog.html
        • M chrome/browser/resources/settings/autofill_page/autofill_ai_add_or_edit_dialog.ts
        Change size: M
        Delta: 4 files changed, 57 insertions(+), 13 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Vidhan Jain, +1 by Viktor Semeniuk
        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: Ie761e152b4bd22aa723b149f11f2bfccaf083332
        Gerrit-Change-Number: 7719739
        Gerrit-PatchSet: 6
        Gerrit-Owner: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Vidhan Jain <vid...@google.com>
        Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages