[EVP] Only trigger strike after user explicitly declines the permission [chromium/src : main]

0 views
Skip to first unread message

Yi Gu (Gerrit)

unread,
3:26 PM (2 hours ago) 3:26 PM
to Mohamed Amir Yosef, chromium...@chromium.org, armalhotra+a...@google.com, browser-comp...@chromium.org, osaul+aut...@google.com, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, vinnypersky+...@google.com
Attention needed from Mohamed Amir Yosef

Yi Gu voted and added 1 comment

Votes added by Yi Gu

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Yi Gu . resolved

PTAL. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Mohamed Amir Yosef
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: I388eb623dff61bd6ee794e53b7cb432897f8a40f
Gerrit-Change-Number: 7883998
Gerrit-PatchSet: 1
Gerrit-Owner: Yi Gu <yi...@chromium.org>
Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
Gerrit-Reviewer: Yi Gu <yi...@chromium.org>
Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 19:26:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Mohamed Amir Yosef (Gerrit)

unread,
3:34 PM (1 hour ago) 3:34 PM
to Yi Gu, Chromium LUCI CQ, chromium...@chromium.org, armalhotra+a...@google.com, browser-comp...@chromium.org, osaul+aut...@google.com, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, vinnypersky+...@google.com
Attention needed from Yi Gu

Mohamed Amir Yosef voted and added 3 comments

Votes added by Mohamed Amir Yosef

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Mohamed Amir Yosef . resolved

LGTM

Thank you!

File chrome/browser/ui/views/autofill/email_verification_popup_view_unittest.cc
Line 453, Patchset 1: if (result == EmailVerificationResult::kDismissed) {
Mohamed Amir Yosef . unresolved

Since `EXPECT_EQ(result, EmailVerificationResult::kIgnored)` ensures `result` won't be `kDismissed` (otherwise the test fails), this `if` block acts as dead code and can safely be removed.

File components/autofill/core/browser/foundations/autofill_client.h
Line 237, Patchset 1: kDismissed = 1,
Mohamed Amir Yosef . unresolved

Please fix this WARNING reported by autoreview issue finding: Consider renaming `kDismissed` to `kDeclined`.

"Dismissed" is generally interpreted as closing or ignoring a dialog without taking explicit action (which corresponds to `kIgnored` here). Even the test names reflect this terminology: `VerificationDismissed` simulates `kIgnored`, while `DeclineAddsStrike` simulates `kDismissed`.

Renaming this would clarify that this enum value represents an explicit user decline and better align with both the commit message and the UI telemetry (`EvpPermissionUiStatus::kDeclined`).

Open in Gerrit

Related details

Attention is currently required from:
  • Yi Gu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I388eb623dff61bd6ee794e53b7cb432897f8a40f
    Gerrit-Change-Number: 7883998
    Gerrit-PatchSet: 2
    Gerrit-Owner: Yi Gu <yi...@chromium.org>
    Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
    Gerrit-Reviewer: Yi Gu <yi...@chromium.org>
    Gerrit-Attention: Yi Gu <yi...@chromium.org>
    Gerrit-Comment-Date: Thu, 28 May 2026 19:34:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sam Goto (Gerrit)

    unread,
    3:53 PM (1 hour ago) 3:53 PM
    to Yi Gu, Mohamed Amir Yosef, Chromium LUCI CQ, chromium...@chromium.org, armalhotra+a...@google.com, browser-comp...@chromium.org, osaul+aut...@google.com, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, vinnypersky+...@google.com
    Attention needed from Yi Gu

    Sam Goto added 3 comments

    File components/autofill/core/browser/foundations/autofill_client.h
    Line 237, Patchset 2 (Latest): kDismissed = 1,
    Sam Goto . unresolved

    kNotNow?

    Line 236, Patchset 2 (Latest): kConfirmed = 0,
    Sam Goto . unresolved

    kAccepted?

    Line 235, Patchset 2 (Latest): enum class EmailVerificationResult {
    Sam Goto . unresolved

    EmailVerificationPromptResult?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Yi Gu
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I388eb623dff61bd6ee794e53b7cb432897f8a40f
    Gerrit-Change-Number: 7883998
    Gerrit-PatchSet: 2
    Gerrit-Owner: Yi Gu <yi...@chromium.org>
    Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
    Gerrit-Reviewer: Yi Gu <yi...@chromium.org>
    Gerrit-CC: Sam Goto <go...@chromium.org>
    Gerrit-Attention: Yi Gu <yi...@chromium.org>
    Gerrit-Comment-Date: Thu, 28 May 2026 19:53:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yi Gu (Gerrit)

    unread,
    4:53 PM (6 minutes ago) 4:53 PM
    to Sam Goto, Mohamed Amir Yosef, Chromium LUCI CQ, chromium...@chromium.org, armalhotra+a...@google.com, browser-comp...@chromium.org, osaul+aut...@google.com, shgar+aut...@google.com, siashah+au...@chromium.org, siyua+aut...@chromium.org, vinnypersky+...@google.com
    Attention needed from Sam Goto

    Yi Gu voted and added 5 comments

    Votes added by Yi Gu

    Commit-Queue+1

    5 comments

    File chrome/browser/ui/views/autofill/email_verification_popup_view_unittest.cc
    Line 453, Patchset 1: if (result == EmailVerificationResult::kDismissed) {
    Mohamed Amir Yosef . resolved

    Since `EXPECT_EQ(result, EmailVerificationResult::kIgnored)` ensures `result` won't be `kDismissed` (otherwise the test fails), this `if` block acts as dead code and can safely be removed.

    Yi Gu

    Done

    File components/autofill/core/browser/foundations/autofill_client.h
    Line 237, Patchset 2: kDismissed = 1,
    Sam Goto . resolved

    kNotNow?

    Yi Gu

    I renamed it to Declined per Mohamed's suggestion. "NotNow" is string centric and the essence of the action is "user declining the prompt". Let me know if you feel strongly about using "NotNow".

    Line 236, Patchset 2: kConfirmed = 0,
    Sam Goto . resolved

    kAccepted?

    Yi Gu

    Done

    Line 235, Patchset 2: enum class EmailVerificationResult {
    Sam Goto . resolved

    EmailVerificationPromptResult?

    Yi Gu

    Good point. Although I used EmailVerificationPermissionUiResult instead. "prompt" is a bit generic IMO. e.g. the toast may also be called "prompt" since it has buttons taking actions (especially for opt-in users the toast is the only UI in EVP).

    Line 237, Patchset 1: kDismissed = 1,
    Mohamed Amir Yosef . resolved

    Please fix this WARNING reported by autoreview issue finding: Consider renaming `kDismissed` to `kDeclined`.

    "Dismissed" is generally interpreted as closing or ignoring a dialog without taking explicit action (which corresponds to `kIgnored` here). Even the test names reflect this terminology: `VerificationDismissed` simulates `kIgnored`, while `DeclineAddsStrike` simulates `kDismissed`.

    Renaming this would clarify that this enum value represents an explicit user decline and better align with both the commit message and the UI telemetry (`EvpPermissionUiStatus::kDeclined`).

    Yi Gu

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sam Goto
    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: I388eb623dff61bd6ee794e53b7cb432897f8a40f
      Gerrit-Change-Number: 7883998
      Gerrit-PatchSet: 5
      Gerrit-Owner: Yi Gu <yi...@chromium.org>
      Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
      Gerrit-Reviewer: Yi Gu <yi...@chromium.org>
      Gerrit-CC: Sam Goto <go...@chromium.org>
      Gerrit-Attention: Sam Goto <go...@chromium.org>
      Gerrit-Comment-Date: Thu, 28 May 2026 20:53:04 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Mohamed Amir Yosef <ma...@chromium.org>
      Comment-In-Reply-To: Sam Goto <go...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages