Incorporate IsAcceptableSuggestionType into Suggestion::IsAcceptable [chromium/src : main]

0 views
Skip to first unread message

Rahim Mammadli (Gerrit)

unread,
4:23 AM (3 hours ago) 4:23 AM
to Jan Keitel, Chromium LUCI CQ, chromium...@chromium.org, browser-comp...@chromium.org
Attention needed from Jan Keitel

Rahim Mammadli voted and added 2 comments

Votes added by Rahim Mammadli

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Rahim Mammadli . resolved

Thank you!

File components/autofill/core/browser/ui/autofill_external_delegate_unittest.cc
Line 2129, Patchset 2 (Latest): const Suggestion suggestion{SuggestionType::kManageAddress};
Rahim Mammadli . unresolved

is this change necessary?

Open in Gerrit

Related details

Attention is currently required from:
  • Jan Keitel
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I47683d6e8ccdb0650679907162e2b95640f09d82
Gerrit-Change-Number: 8139483
Gerrit-PatchSet: 2
Gerrit-Owner: Jan Keitel <jke...@google.com>
Gerrit-Reviewer: Jan Keitel <jke...@google.com>
Gerrit-Reviewer: Rahim Mammadli <rah...@google.com>
Gerrit-Attention: Jan Keitel <jke...@google.com>
Gerrit-Comment-Date: Fri, 24 Jul 2026 08:22:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Jan Keitel (Gerrit)

unread,
5:11 AM (2 hours ago) 5:11 AM
to Rahim Mammadli, Chromium LUCI CQ, chromium...@chromium.org, browser-comp...@chromium.org

Jan Keitel voted and added 1 comment

Votes added by Jan Keitel

Commit-Queue+2

1 comment

File components/autofill/core/browser/ui/autofill_external_delegate_unittest.cc
Line 2129, Patchset 2 (Latest): const Suggestion suggestion{SuggestionType::kManageAddress};
Rahim Mammadli . resolved

is this change necessary?

Jan Keitel

Yes, because `AED` CHECKs that `Suggestion::IsAcceptable()` is true.

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: I47683d6e8ccdb0650679907162e2b95640f09d82
    Gerrit-Change-Number: 8139483
    Gerrit-PatchSet: 2
    Gerrit-Owner: Jan Keitel <jke...@google.com>
    Gerrit-Reviewer: Jan Keitel <jke...@google.com>
    Gerrit-Reviewer: Rahim Mammadli <rah...@google.com>
    Gerrit-Comment-Date: Fri, 24 Jul 2026 09:11:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Rahim Mammadli <rah...@google.com>
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    5:17 AM (2 hours ago) 5:17 AM
    to Jan Keitel, Rahim Mammadli, chromium...@chromium.org, browser-comp...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Incorporate IsAcceptableSuggestionType into Suggestion::IsAcceptable

    This CL extends autofill::Suggestion::IsAcceptable() to check whether the
    suggestion type is acceptable (e.g. not a separator, title, or message)
    in addition to checking acceptability state.

    The standalone helper IsAcceptableSuggestionType() is removed and its
    call sites updated to call Suggestion::IsAcceptable() instead.

    While still not perfect (we should consider adding setters and getters
    to Suggestion as it becomes more complex), this makes acceptability
    decisions more centralized and, hopefully, less confusing.

    TAG=agy
    CONV=8d0cc70f-64a0-4a23-a918-b82a2404358c
    Bug: 40100455, 537193970
    Change-Id: I47683d6e8ccdb0650679907162e2b95640f09d82
    Reviewed-by: Rahim Mammadli <rah...@google.com>
    Commit-Queue: Jan Keitel <jke...@google.com>
    Cr-Commit-Position: refs/heads/main@{#1667732}
    Files:
    • M chrome/browser/ui/autofill/autofill_keyboard_accessory_controller_impl.cc
    • M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
    • M chrome/browser/ui/autofill/autofill_suggestion_controller_utils.cc
    • M chrome/browser/ui/autofill/autofill_suggestion_controller_utils.h
    • M components/autofill/core/browser/BUILD.gn
    • M components/autofill/core/browser/suggestions/suggestion.cc
    • M components/autofill/core/browser/suggestions/suggestion.h
    • A components/autofill/core/browser/suggestions/suggestion_unittest.cc
    • M components/autofill/core/browser/ui/autofill_external_delegate_unittest.cc
    Change size: M
    Delta: 9 files changed, 58 insertions(+), 19 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Rahim Mammadli
    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: I47683d6e8ccdb0650679907162e2b95640f09d82
    Gerrit-Change-Number: 8139483
    Gerrit-PatchSet: 3
    Gerrit-Owner: Jan Keitel <jke...@google.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Jan Keitel <jke...@google.com>
    Gerrit-Reviewer: Rahim Mammadli <rah...@google.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages