[CVV Storage][Settings] Adding the checks for cvv tag on each card entry [chromium/src : main]

7 views
Skip to first unread message

Vipul Koul (Gerrit)

unread,
Sep 14, 2023, 2:48:27 PM9/14/23
to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

Attention is currently required from: Vipul Koul.

Vipul Koul uploaded patch set #2 to this change.

View Change

[CVV Storage][Settings] Adding the checks for cvv tag on each card entry

Bug:1464441
Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
---
M chrome/browser/extensions/api/autofill_private/autofill_private_api.cc
M chrome/browser/extensions/api/autofill_private/autofill_util.cc
M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
M chrome/browser/resources/settings/autofill_page/payments_section.html
M chrome/browser/resources/settings/autofill_page/payments_section.ts
M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
M chrome/common/extensions/api/autofill_private.idl
M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
M chrome/test/data/webui/settings/payments_section_test.ts
M components/autofill_payments_strings.grdp
A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
M tools/typescript/definitions/autofill_private.d.ts
12 files changed, 148 insertions(+), 4 deletions(-)

To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
Gerrit-Change-Number: 4865647
Gerrit-PatchSet: 2
Gerrit-Owner: Vipul Koul <koul...@google.com>
Gerrit-Reviewer: Vipul Koul <koul...@google.com>
Gerrit-Attention: Vipul Koul <koul...@google.com>

Vipul Koul (Gerrit)

unread,
Sep 14, 2023, 3:04:29 PM9/14/23
to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

Attention is currently required from: Vipul Koul.

Vipul Koul uploaded patch set #3 to this change.

View Change

[CVV Storage][Settings] Adding the checks for cvv tag on each card entry

Bug:1464441
Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
---
M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
M chrome/browser/resources/settings/autofill_page/payments_section.html
M chrome/browser/resources/settings/autofill_page/payments_section.ts
M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
M chrome/test/data/webui/settings/payments_section_test.ts
M components/autofill_payments_strings.grdp
A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
8 files changed, 136 insertions(+), 4 deletions(-)

To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
Gerrit-Change-Number: 4865647
Gerrit-PatchSet: 3

Vipul Koul (Gerrit)

unread,
Sep 14, 2023, 3:06:53 PM9/14/23
to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

Attention is currently required from: Vipul Koul.

Vipul Koul uploaded patch set #4 to this change.

View Change

[CVV Storage][Settings] Adding the checks for cvv tag on each card entry

Design doc- go/pay-autofill-cvv-storage-chrome

UX mocks- go/autofill-cvv-storage-ux

Screenshots for cvv tag on credit card entry-
go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384


Bug:1464441
Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
---
M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
M chrome/browser/resources/settings/autofill_page/payments_section.html
M chrome/browser/resources/settings/autofill_page/payments_section.ts
M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
M chrome/test/data/webui/settings/payments_section_test.ts
M components/autofill_payments_strings.grdp
A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
8 files changed, 136 insertions(+), 4 deletions(-)

To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
Gerrit-Change-Number: 4865647
Gerrit-PatchSet: 4

Vipul Koul (Gerrit)

unread,
Sep 14, 2023, 3:09:21 PM9/14/23
to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

Attention is currently required from: Vipul Koul.

Vipul Koul uploaded patch set #5 to this change.

View Change

[CVV Storage][Settings] Adding the checks for cvv tag on each card entry

If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.


Design doc- go/pay-autofill-cvv-storage-chrome

UX mocks- go/autofill-cvv-storage-ux

Screenshots for cvv tag on credit card entry-
go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

Bug:1464441
Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
---
M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
M chrome/browser/resources/settings/autofill_page/payments_section.html
M chrome/browser/resources/settings/autofill_page/payments_section.ts
M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
M chrome/test/data/webui/settings/payments_section_test.ts
M components/autofill_payments_strings.grdp
A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
8 files changed, 136 insertions(+), 4 deletions(-)

To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
Gerrit-Change-Number: 4865647
Gerrit-PatchSet: 5

Vipul Koul (Gerrit)

unread,
Sep 14, 2023, 3:09:55 PM9/14/23
to Siyu An, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

Attention is currently required from: Siyu An.

Vipul Koul would like Siyu An to review this change.

View Change

[CVV Storage][Settings] Adding the checks for cvv tag on each card entry

If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

Design doc- go/pay-autofill-cvv-storage-chrome

UX mocks- go/autofill-cvv-storage-ux

Screenshots for cvv tag on credit card entry-
go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

Bug:1464441
Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
---
M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
M chrome/browser/resources/settings/autofill_page/payments_section.html
M chrome/browser/resources/settings/autofill_page/payments_section.ts
M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
M chrome/test/data/webui/settings/payments_section_test.ts
M components/autofill_payments_strings.grdp
A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
8 files changed, 136 insertions(+), 4 deletions(-)


To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
Gerrit-Change-Number: 4865647
Gerrit-PatchSet: 5
Gerrit-Owner: Vipul Koul <koul...@google.com>
Gerrit-Reviewer: Siyu An <si...@chromium.org>
Gerrit-Reviewer: Vipul Koul <koul...@google.com>
Gerrit-Attention: Siyu An <si...@chromium.org>

Vipul Koul (Gerrit)

unread,
Sep 14, 2023, 3:10:03 PM9/14/23
to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Siyu An.

Patch set 5:Commit-Queue +1

View Change

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 5
    Gerrit-Owner: Vipul Koul <koul...@google.com>
    Gerrit-Reviewer: Siyu An <si...@chromium.org>
    Gerrit-Reviewer: Vipul Koul <koul...@google.com>
    Gerrit-Attention: Siyu An <si...@chromium.org>
    Gerrit-Comment-Date: Thu, 14 Sep 2023 19:09:53 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes

    Siyu An (Gerrit)

    unread,
    Sep 14, 2023, 6:49:14 PM9/14/23
    to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Vipul Koul.

    View Change

    7 comments:

    • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      • Patch Set #5, Line 148:


        /**
        * Returns virtual card metadata if the card is eligible for enrollment or has
        * already enrolled, or expiration date (MM/YY) otherwise.
        * E.g., 11/23, or Virtual card turned on
        */

        Can you update this comment since you are here?

      • Patch Set #5, Line 158: EXPIRATION_DATE

        This is no longer accurate?

        Don't have a good idea in mind, but can we change to something like "card secondary information" or add a new type exp + cvc?

      • Patch Set #5, Line 172: getSummaryAriaSublabel_

        I think we need to update this too, and its related tests

    • File chrome/browser/resources/settings/autofill_page/payments_section.html:

    • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

      • Patch Set #5, Line 660: enableCvcStorageDeleteDataSublabel

        Oh so this string is already in the codebase but we didn't use it. Do you have the link clicking handling ready?

    • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

      • Patch Set #5, Line 487: verifyCvcTagPresentForServerCard

        I think you can probably merge the two tests if not extracting duplicate logic out? As the two cases tested are not much different that need two tests

      • Patch Set #5, Line 503: assertEquals

        If you update the sublabel type please also verify it here if possible

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 5
    Gerrit-Owner: Vipul Koul <koul...@google.com>
    Gerrit-Reviewer: Siyu An <si...@chromium.org>
    Gerrit-Reviewer: Vipul Koul <koul...@google.com>
    Gerrit-Attention: Vipul Koul <koul...@google.com>
    Gerrit-Comment-Date: Thu, 14 Sep 2023 22:49:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Vipul Koul (Gerrit)

    unread,
    Sep 15, 2023, 5:19:01 PM9/15/23
    to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

    Attention is currently required from: Vipul Koul.

    Vipul Koul uploaded patch set #6 to this change.

    View Change

    [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

    If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

    Design doc- go/pay-autofill-cvv-storage-chrome

    UX mocks- go/autofill-cvv-storage-ux

    Screenshots for cvv tag on credit card entry-
    go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

    Bug:1464441
    Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    ---
    M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
    M chrome/browser/resources/settings/autofill_page/payments_section.html
    M chrome/browser/resources/settings/autofill_page/payments_section.ts
    M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
    M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
    M chrome/test/data/webui/settings/payments_section_test.ts
    M components/autofill_payments_strings.grdp
    A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
    8 files changed, 144 insertions(+), 13 deletions(-)

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: newpatchset
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 6

    Vipul Koul (Gerrit)

    unread,
    Sep 18, 2023, 2:02:57 PM9/18/23
    to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Siyu An.

    View Change

    7 comments:

    • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      • Patch Set #5, Line 148:


        /**
        * Returns virtual card metadata if the card is eligible for enrollment or has
        * already enrolled, or expiration date (MM/YY) otherwise.
        * E.g., 11/23, or Virtual card turned on
        */

        Can you update this comment since you are here?

      • Done

      • This is no longer accurate? […]

        Done

      • The existing tests should be fine as we would show the new sublabel only for `EXPIRATION_DATE_WITH_CVC_TAG`

    • File chrome/browser/resources/settings/autofill_page/payments_section.html:

      • Yup, this is needed due to polymer properties. So if any changes happen to creditCards, all the methods tied to this variable will be triggered. So if any change happens, cvc checked on each credit card and update the sublabel if needed

    • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

    • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

      • I think you can probably merge the two tests if not extracting duplicate logic out? As the two cases […]

        Done

      • Sublabel type is neither added to the credit card object nor to the DOM. So we can't check for it's value.
        But if you see my updates, this check is intuitive now!

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 6
    Gerrit-Owner: Vipul Koul <koul...@google.com>
    Gerrit-Reviewer: Siyu An <si...@chromium.org>
    Gerrit-Reviewer: Vipul Koul <koul...@google.com>
    Gerrit-Attention: Siyu An <si...@chromium.org>
    Gerrit-Comment-Date: Mon, 18 Sep 2023 18:02:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Siyu An <si...@chromium.org>

    Siyu An (Gerrit)

    unread,
    Sep 19, 2023, 2:33:43 PM9/19/23
    to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Vipul Koul.

    View Change

    5 comments:

    • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      • Patch Set #5, Line 172: getSummaryAriaSublabel_

        The existing tests should be fine as we would show the new sublabel only for `EXPIRATION_DATE_WITH_C […]

        I have a question here: so we only read out "Expiration date: <ph name="CARD">$1<ex>11/2028</ex></ph>" even if it has a CVC? Would it be Expiration date: 11/2028 | 123?

    • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      • Patch Set #6, Line 156:

            if (loadTimeData.getBoolean('cvcStorageAvailable') && this.creditCard.cvc!
        ) {
        return CardSummarySublabelType.EXPIRATION_DATE_WITH_CVC_TAG;
        }

        Ahh is this formatted?

    • File chrome/browser/resources/settings/autofill_page/payments_section.html:

      • Yup, this is needed due to polymer properties. […]

        Got it. Makes sense

    • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 6
    Gerrit-Owner: Vipul Koul <koul...@google.com>
    Gerrit-Reviewer: Siyu An <si...@chromium.org>
    Gerrit-Reviewer: Vipul Koul <koul...@google.com>
    Gerrit-Attention: Vipul Koul <koul...@google.com>
    Gerrit-Comment-Date: Tue, 19 Sep 2023 18:33:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Vipul Koul <koul...@google.com>
    Comment-In-Reply-To: Siyu An <si...@chromium.org>

    Vipul Koul (Gerrit)

    unread,
    Sep 19, 2023, 6:53:34 PM9/19/23
    to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

    Attention is currently required from: Vipul Koul.

    Vipul Koul uploaded patch set #7 to this change.

    View Change

    [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

    If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

    Design doc- go/pay-autofill-cvv-storage-chrome

    UX mocks- go/autofill-cvv-storage-ux

    Screenshots for cvv tag on credit card entry-
    go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

    Bug:1464441
    Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    ---
    M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
    M chrome/browser/resources/settings/autofill_page/payments_section.html
    M chrome/browser/resources/settings/autofill_page/payments_section.ts
    M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
    M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
    M chrome/test/data/webui/settings/payments_section_test.ts
    M components/autofill_payments_strings.grdp
    A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
    8 files changed, 146 insertions(+), 13 deletions(-)

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: newpatchset
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 7

    Vipul Koul (Gerrit)

    unread,
    Sep 19, 2023, 6:56:53 PM9/19/23
    to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

    Attention is currently required from: Vipul Koul.

    Vipul Koul uploaded patch set #8 to this change.

    View Change

    [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

    If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

    Design doc- go/pay-autofill-cvv-storage-chrome

    UX mocks- go/autofill-cvv-storage-ux

    Screenshot for cvv tag on credit card entry-
    go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

    Screenshot for cvv tag captioning on credit card entry-
    https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy


    Bug:1464441
    Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    ---
    M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
    M chrome/browser/resources/settings/autofill_page/payments_section.html
    M chrome/browser/resources/settings/autofill_page/payments_section.ts
    M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
    M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
    M chrome/test/data/webui/settings/payments_section_test.ts
    M components/autofill_payments_strings.grdp
    A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
    8 files changed, 146 insertions(+), 13 deletions(-)

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: newpatchset
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 8

    Vipul Koul (Gerrit)

    unread,
    Sep 19, 2023, 6:59:01 PM9/19/23
    to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Siyu An.

    Patch set 8:Commit-Queue +1

    View Change

    3 comments:

    • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      • I have a question here: so we only read out "Expiration date: <ph name="CARD">$1<ex>11/2028</ex></ph […]

        Discussed offline and added the image in description for audio captioning

    • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      • Patch Set #6, Line 156:

            if (loadTimeData.getBoolean('cvcStorageAvailable') && this.creditCard.cvc!
        ) {
        return CardSummarySublabelType.EXPIRATION_DATE_WITH_CVC_TAG;
        }

        Ahh is this formatted?

      • Yes it is. I had the same question but git cl format did this!

    • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

      • Done

    To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
    Gerrit-Change-Number: 4865647
    Gerrit-PatchSet: 8
    Gerrit-Owner: Vipul Koul <koul...@google.com>
    Gerrit-Reviewer: Siyu An <si...@chromium.org>
    Gerrit-Reviewer: Vipul Koul <koul...@google.com>
    Gerrit-Attention: Siyu An <si...@chromium.org>
    Gerrit-Comment-Date: Tue, 19 Sep 2023 22:58:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    Siyu An (Gerrit)

    unread,
    Sep 19, 2023, 7:36:23 PM9/19/23
    to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Vipul Koul.

    Patch set 8:Code-Review +1

    View Change

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 8
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Tue, 19 Sep 2023 23:36:13 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes

      Vipul Koul (Gerrit)

      unread,
      Sep 19, 2023, 7:41:26 PM9/19/23
      to Stephen McGruer, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Siyu An

      Attention is currently required from: Stephen McGruer.

      Vipul Koul would like Stephen McGruer to review this change.

      View Change

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 146 insertions(+), 13 deletions(-)


      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newchange
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 8
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>

      Vipul Koul (Gerrit)

      unread,
      Sep 19, 2023, 7:41:34 PM9/19/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Stephen McGruer.

      View Change

      1 comment:

      • Patchset:

        • Patch Set #8:

          Hey Stephen,
          Can you please review this CL?

          Thanks and please LMK if you have any questions!!

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 8
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Comment-Date: Tue, 19 Sep 2023 23:41:22 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Vipul Koul (Gerrit)

      unread,
      Sep 19, 2023, 8:39:26 PM9/19/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

      Attention is currently required from: Stephen McGruer.

      Vipul Koul uploaded patch set #9 to this change.

      View Change

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 147 insertions(+), 13 deletions(-)

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newpatchset
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 9

      Stephen McGruer (Gerrit)

      unread,
      Sep 21, 2023, 9:39:20 AM9/21/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Vipul Koul.

      View Change

      6 comments:

      • Patchset:

        • Patch Set #9:

          High level this looks ok to me (a few comments so not LGTMing yet), but I'm also not very familiar with typescript. I suggest you bring in dpapad@ for review as well.

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • Patch Set #9, Line 156: this.creditCard.cvc!

          I'm not a typescript expert, but IIUC `!` is the non-null assertion operator, i.e. tells the compiler that this value cannot be null. Why is that necessary here? (Indeed, it seems like checking for null is what you would want to be doing here, as well as checking that it's non-empty).

        • Patch Set #9, Line 157: ) {

          This is very strange formatting (to have the closing `)` on a newline); was this produced by Chromium's formatter, or did you manually format like this?

        • Patch Set #9, Line 167: on or

          Super nit: comma before the `or` 😄

          `turned on, or 11/23 |`

      • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

        • Patch Set #9, Line 660: return this.i18nAdvanced('enableCvcStorageDeleteDataSublabel')

          Can you help me understand the need to use i18nAdvanced when there is no `opts` passed in? What does it do differently from `i18n` in that case?

      • File chrome/test/data/webui/settings/payments_section_test.ts:

        • Patch Set #9, Line 572: v

          Should this be `Cvc`, given you modified the above test to be named that way? (Here and other new test names).

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 9
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Thu, 21 Sep 2023 13:39:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Vipul Koul (Gerrit)

      unread,
      Oct 4, 2023, 11:21:52 PM10/4/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

      Attention is currently required from: Vipul Koul.

      Vipul Koul uploaded patch set #10 to this change.

      View Change

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 147 insertions(+), 12 deletions(-)

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newpatchset
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 10

      Vipul Koul (Gerrit)

      unread,
      Oct 5, 2023, 10:33:13 PM10/5/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Stephen McGruer.

      View Change

      5 comments:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • I'm not a typescript expert, but IIUC `!` is the non-null assertion operator, i.e. […]

          I added `!` to check cvc isn't null and has definite value-
          If cvc is null, then `!` assert will be false.
          If cvc is not null then, if check will make sure it's not empty

        • This is very strange formatting (to have the closing `)` on a newline); was this produced by Chromiu […]

          `git cl format --js chrome/` did this. I tried to format it correctly but the formatter would reset to this!!

        • Super nit: comma before the `or` 😄 […]

          Done

      • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

        • Should this be `Cvc`, given you modified the above test to be named that way? (Here and other new te […]

          Yup should be `Cvc`. Thanks for catching it and updated the same!!

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 10
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Comment-Date: Fri, 06 Oct 2023 02:33:02 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Stephen McGruer <smcg...@chromium.org>

      Stephen McGruer (Gerrit)

      unread,
      Oct 6, 2023, 11:48:26 AM10/6/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Vipul Koul.

      Patch set 10:Code-Review +1

      View Change

      2 comments:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • I added `!` to check cvc isn't null and has definite value- […]

          Acknowledged

      • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

        • `enableCvcStorageDeleteDataSublabel` has a hyperlink in it which the regular `i18n` doesn't pick up […]

          Acknowledged

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 10
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Fri, 06 Oct 2023 15:48:14 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Stephen McGruer <smcg...@chromium.org>
      Comment-In-Reply-To: Vipul Koul <koul...@google.com>

      Vipul Koul (Gerrit)

      unread,
      Oct 6, 2023, 7:06:13 PM10/6/23
      to Demetrios Papadopoulos, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An

      Attention is currently required from: Demetrios Papadopoulos.

      Vipul Koul would like Demetrios Papadopoulos to review this change.

      View Change

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 147 insertions(+), 12 deletions(-)


      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newchange
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 10
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>

      Vipul Koul (Gerrit)

      unread,
      Oct 6, 2023, 7:06:20 PM10/6/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Demetrios Papadopoulos, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Demetrios Papadopoulos.

      View Change

      1 comment:


        • Can you please review this CL?

        • Thanks.

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 10
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Comment-Date: Fri, 06 Oct 2023 23:06:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Demetrios Papadopoulos (Gerrit)

      unread,
      Oct 6, 2023, 7:25:21 PM10/6/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Vipul Koul.

      View Change

      6 comments:

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 10
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Fri, 06 Oct 2023 23:25:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Vipul Koul (Gerrit)

      unread,
      Oct 6, 2023, 9:07:05 PM10/6/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

      Attention is currently required from: Vipul Koul.

      Vipul Koul uploaded patch set #11 to this change.

      View Change

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 148 insertions(+), 13 deletions(-)

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newpatchset
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 11

      Vipul Koul (Gerrit)

      unread,
      Oct 11, 2023, 6:49:38 PM10/11/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Demetrios Papadopoulos, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Demetrios Papadopoulos.

      View Change

      6 comments:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • The code below seems to be doing the opposite, no? Meaning it converts a number like 6 to a string l […]

          Yes you are right and i missed this. I took this comment from the old implementation and ran with it (line 143-147 in base)

          Updated the comment. Thanks for catching this Demetrios!!

      • File chrome/browser/resources/settings/autofill_page/payments_section.ts:

        • Patch Set #10, Line 657:

          for (const card of this.creditCards) {
          if (card.cvc!) {
          return this.i18nAdvanced('enableCvcStorageDeleteDataSublabel')
          .toString();
          }
          }

        • How about leveraging Array's the find() method? For example as follows: […]

          Done, thanks for the suggestion!!

        • Why is this needed? Something seems off here. […]

          I assumed that the label on the toggle would only take string as an input so had converted the same.
          This works too and updated the same. Thank you!

      • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

        • Instead of basically running two different tests inside a single test() call, use separate test() ca […]

          Done

        • Patch Set #10, Line 520:

           assertFalse(paymentsList[0]!.shadowRoot!
          .querySelector<HTMLElement>('#summarySublabel')!.hidden);
          assertFalse(paymentsList[1]!.shadowRoot!
          .querySelector<HTMLElement>('#summarySublabel')!.hidden);

        • Here and below: Don't assert directly on the `hidden` property. […]

          Done

        • If you follow my previous comment, then you no longer need to clear the DOM here, and you can still […]

          Yup that worked. Thanks Demetrios!!

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 12
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Comment-Date: Wed, 11 Oct 2023 22:49:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Demetrios Papadopoulos <dpa...@chromium.org>

      Demetrios Papadopoulos (Gerrit)

      unread,
      Oct 11, 2023, 7:08:37 PM10/11/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Vipul Koul.

      Patch set 12:Code-Review +1

      View Change

      1 comment:

      • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

        • Patch Set #12, Line 520: const paymentsList = getLocalAndServerCreditCardListItems();

          FWIW, I think there is a larger issue with the payments related tests, where it is not clear which test is testing what and the responsibilities of each test are quite blurry.

          The proper way of testing web components is to have isolated unit tests for each web component (1:1 relatinship between test file and web component). The tests here create a `settings-payments-section`, but then procced (below) to make assertions within the shadow DOM of a `settings-credit-card-list-entry` element.

          This is a big code smell IMO, and it makes it unclear who tests what, which file should host which test, often makes tests more flaky (needing to dig through multiple layers of shadow DOM to accomplish its task).

          Obviously this can't be fixed in this CL, but I strongly suggest looking into this issue and refactoring/rewriting tests as time allows.

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 12
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Wed, 11 Oct 2023 23:08:26 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes

      Vipul Koul (Gerrit)

      unread,
      Oct 17, 2023, 10:19:10 PM10/17/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

      Attention is currently required from: Demetrios Papadopoulos, Siyu An, Stephen McGruer, Vipul Koul.

      Vipul Koul uploaded patch set #13 to this change.

      View Change

      The following approvals got outdated and were removed: Code-Review+1 by Demetrios Papadopoulos, Code-Review+1 by Siyu An, Code-Review+1 by Stephen McGruer

      The change is no longer submittable: Code-Owners and Code-Review are unsatisfied now.

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/extensions/api/autofill_private/autofill_private_apitest.cc

      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      9 files changed, 151 insertions(+), 13 deletions(-)

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newpatchset
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 13
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Siyu An <si...@chromium.org>

      Vipul Koul (Gerrit)

      unread,
      Oct 17, 2023, 10:26:28 PM10/17/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

      Attention is currently required from: Demetrios Papadopoulos, Siyu An, Stephen McGruer, Vipul Koul.

      Vipul Koul uploaded patch set #14 to this change.

      View Change

      The following approvals got outdated and were removed: Commit-Queue+1 by Vipul Koul

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 148 insertions(+), 13 deletions(-)

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newpatchset
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 14

      Siyu An (Gerrit)

      unread,
      Oct 18, 2023, 4:23:19 PM10/18/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Demetrios Papadopoulos, Stephen McGruer, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Demetrios Papadopoulos, Stephen McGruer, Vipul Koul.

      Patch set 14:Code-Review +1

      View Change

      1 comment:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 14
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Wed, 18 Oct 2023 20:23:08 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes

      Vipul Koul (Gerrit)

      unread,
      Oct 18, 2023, 11:52:29 PM10/18/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Siyu An, Demetrios Papadopoulos, Stephen McGruer, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Demetrios Papadopoulos, Siyu An, Stephen McGruer.

      View Change

      2 comments:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • FWIW, I think there is a larger issue with the payments related tests, where it is not clear which t […]

          Sorry trying to understand what you mean here.
          So `createPaymentsSection()` creates a payment section but then we extract the `settings-credit-card-list-entry` via `getLocalAndServerCreditCardListItems()` for the credit card object list. IMO this seems like the correct thing to do-
          1. Create the payments settings page
          2. Extract the cards from the DOM of the above created page
          3. Assert the cards for values

          I am sorry if i am aware of any standards used for testing front end code and can you please provide me with some documentation for the same?

          Thanks!

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 14
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Attention: Siyu An <si...@chromium.org>
      Gerrit-Comment-Date: Thu, 19 Oct 2023 03:52:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Demetrios Papadopoulos <dpa...@chromium.org>
      Comment-In-Reply-To: Siyu An <si...@chromium.org>

      Demetrios Papadopoulos (Gerrit)

      unread,
      Oct 19, 2023, 2:57:41 PM10/19/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Siyu An, Stephen McGruer, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Siyu An, Stephen McGruer, Vipul Koul.

      Patch set 14:Code-Review +1

      View Change

      1 comment:

      • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

        • . IMO this seems like the correct thing to do

          If we are trying to test `settings-credit-card-list-entry` itself why are we not creating such an element directly? The standard practice is to "unit test" web components on their own.

        • Create the payments settings page

        • This is justified when trying to test the settings-settings-section itself (code that resides in that web component, not transitively in all other child web components). For example such a test should only check that settings-payment-section is rendering the expected number of items as it should. Unit testing the internals of such items does not belong in the same test.

        • I am sorry if i am aware of any standards used for testing front end code and can you please provide me with some documentation for the same?

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 14
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Siyu An <si...@chromium.org>
      Gerrit-Comment-Date: Thu, 19 Oct 2023 18:57:31 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Demetrios Papadopoulos <dpa...@chromium.org>
      Comment-In-Reply-To: Vipul Koul <koul...@google.com>

      Siyu An (Gerrit)

      unread,
      Oct 19, 2023, 5:15:54 PM10/19/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Demetrios Papadopoulos, Stephen McGruer, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Stephen McGruer, Vipul Koul.

      View Change

      1 comment:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • Lol Stephen had asked the same question, so can you please refer to this- https://chromium-review. […]

          I think what you want is probably "!!this.creditcard.cvc" which casts value to boolean, instead of this.

          This is non-null assertion operator which tells the ts that you are sure this is not null when this inference is beyond its knowledge.

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 14
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Vipul Koul <koul...@google.com>
      Gerrit-Comment-Date: Thu, 19 Oct 2023 21:15:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Vipul Koul (Gerrit)

      unread,
      Oct 20, 2023, 8:07:35 PM10/20/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org

      Attention is currently required from: Stephen McGruer, Vipul Koul.

      Vipul Koul uploaded patch set #15 to this change.

      View Change

      [CVV Storage][Settings] Adding the checks for cvv tag on each card entry


      If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

      Design doc- go/pay-autofill-cvv-storage-chrome

      UX mocks- go/autofill-cvv-storage-ux

      Screenshot for cvv tag on credit card entry-
      go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

      Screenshot for cvv tag captioning on credit card entry-
      https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

      Bug:1464441
      Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      ---
      M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
      M chrome/browser/resources/settings/autofill_page/payments_section.html
      M chrome/browser/resources/settings/autofill_page/payments_section.ts
      M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
      M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
      M chrome/test/data/webui/settings/payments_section_test.ts
      M components/autofill_payments_strings.grdp
      A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
      8 files changed, 147 insertions(+), 13 deletions(-)

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newpatchset
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 15

      Vipul Koul (Gerrit)

      unread,
      Oct 20, 2023, 10:18:20 PM10/20/23
      to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Demetrios Papadopoulos, Siyu An, Stephen McGruer, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Stephen McGruer.

      View Change

      1 comment:

      • File chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts:

        • I think what you want is probably "!!this.creditcard. […]

          Got it and updated the same. Thanks Siyu!!

      To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
      Gerrit-Change-Number: 4865647
      Gerrit-PatchSet: 15
      Gerrit-Owner: Vipul Koul <koul...@google.com>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Siyu An <si...@chromium.org>
      Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Reviewer: Vipul Koul <koul...@google.com>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Comment-Date: Sat, 21 Oct 2023 02:18:13 +0000

      Stephen McGruer (Gerrit)

      unread,
      Oct 24, 2023, 9:06:23 AM10/24/23
      to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Demetrios Papadopoulos, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Vipul Koul.

      Patch set 15:Code-Review +1

      View Change

        To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
        Gerrit-Change-Number: 4865647
        Gerrit-PatchSet: 15
        Gerrit-Owner: Vipul Koul <koul...@google.com>
        Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
        Gerrit-Reviewer: Siyu An <si...@chromium.org>
        Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
        Gerrit-Reviewer: Vipul Koul <koul...@google.com>
        Gerrit-Attention: Vipul Koul <koul...@google.com>
        Gerrit-Comment-Date: Tue, 24 Oct 2023 13:06:14 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes

        Vipul Koul (Gerrit)

        unread,
        Oct 24, 2023, 7:40:56 PM10/24/23
        to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Demetrios Papadopoulos, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

        Patch set 16:Commit-Queue +2

        View Change

          To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
          Gerrit-Change-Number: 4865647
          Gerrit-PatchSet: 16
          Gerrit-Owner: Vipul Koul <koul...@google.com>
          Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Reviewer: Siyu An <si...@chromium.org>
          Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
          Gerrit-Reviewer: Vipul Koul <koul...@google.com>
          Gerrit-Comment-Date: Tue, 24 Oct 2023 23:40:46 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes

          Vipul Koul (Gerrit)

          unread,
          Oct 24, 2023, 7:44:08 PM10/24/23
          to armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Demetrios Papadopoulos, Siyu An, Chromium LUCI CQ, chromium...@chromium.org

          Attention is currently required from: Demetrios Papadopoulos.

          View Change

          1 comment:

          • File chrome/test/data/webui/settings/payments_section_card_rows_test.ts:

            • > . IMO this seems like the correct thing to do […]

              Got it, this should be a seperate a refactor to fix these. I'll try to do these in the future CLs!

              Thanks for the explanation Demetrios!!

          To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
          Gerrit-Change-Number: 4865647
          Gerrit-PatchSet: 16
          Gerrit-Owner: Vipul Koul <koul...@google.com>
          Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Reviewer: Siyu An <si...@chromium.org>
          Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
          Gerrit-Reviewer: Vipul Koul <koul...@google.com>
          Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Comment-Date: Tue, 24 Oct 2023 23:43:59 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No

          Chromium LUCI CQ (Gerrit)

          unread,
          Oct 24, 2023, 9:06:19 PM10/24/23
          to Vipul Koul, armalhotra+a...@google.com, chromium-a...@chromium.org, extension...@chromium.org, jsaul+aut...@google.com, michaelpg+wa...@chromium.org, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, Stephen McGruer, Demetrios Papadopoulos, Siyu An, chromium...@chromium.org

          Chromium LUCI CQ submitted this change.

          View Change



          15 is the latest approved patch-set.
          No files were changed between the latest approved patch-set and the submitted one.

          Approvals: Demetrios Papadopoulos: Looks good to me Siyu An: Looks good to me Stephen McGruer: Looks good to me Vipul Koul: Commit
          [CVV Storage][Settings] Adding the checks for cvv tag on each card entry

          If a credit card entry has cvv present, "CVC Saved" will be added to the sub-label of the card entry.

          Design doc- go/pay-autofill-cvv-storage-chrome

          UX mocks- go/autofill-cvv-storage-ux

          Screenshot for cvv tag on credit card entry-
          go/strpic/8a5bd15701a19ba75c7d59bbfd6149723177c384

          Screenshot for cvv tag captioning on credit card entry-
          https://screenshot.googleplex.com/8UmVMKTTJ7YEaUy

          Bug: 1464441
          Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
          Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4865647
          Reviewed-by: Siyu An <si...@chromium.org>
          Reviewed-by: Demetrios Papadopoulos <dpa...@chromium.org>
          Reviewed-by: Stephen McGruer <smcg...@chromium.org>
          Commit-Queue: Vipul Koul <koul...@google.com>
          Cr-Commit-Position: refs/heads/main@{#1214570}

          ---
          M chrome/browser/resources/settings/autofill_page/credit_card_list_entry.ts
          M chrome/browser/resources/settings/autofill_page/payments_section.html
          M chrome/browser/resources/settings/autofill_page/payments_section.ts
          M chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
          M chrome/test/data/webui/settings/payments_section_card_rows_test.ts
          M chrome/test/data/webui/settings/payments_section_test.ts
          M components/autofill_payments_strings.grdp
          A components/autofill_payments_strings_grdp/IDS_AUTOFILL_SETTINGS_PAGE_CVC_TAG_FOR_CREDIT_CARD_LIST_ENTRY.png.sha1
          8 files changed, 147 insertions(+), 13 deletions(-)


          To view, visit change 4865647. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: merged
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I47bebc307ae6ae5775e2cd5f3821af4de8587402
          Gerrit-Change-Number: 4865647
          Gerrit-PatchSet: 17
          Gerrit-Owner: Vipul Koul <koul...@google.com>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Reviewer: Siyu An <si...@chromium.org>
          Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
          Gerrit-Reviewer: Vipul Koul <koul...@google.com>
          Reply all
          Reply to author
          Forward
          0 new messages