Do not hide on PContext notice acknowledgement [chromium/src : main]

0 views
Skip to first unread message

Jan Keitel (Gerrit)

unread,
Jul 20, 2026, 12:59:00 PM (yesterday) Jul 20
to Aisulu Rakhmetullina, Ireneusz Szulc, Rahim Mammadli, Chromium LUCI CQ, chromium...@chromium.org

Jan Keitel voted and added 4 comments

Votes added by Jan Keitel

Commit-Queue+2

4 comments

Commit Message
Line 7, Patchset 3:Do not hide on PContext notice acceptance
Aisulu Rakhmetullina . resolved

Nity nit with my privacy hat on: notices are acknowledged while consent requests are accepted.

```suggestion
Do not hide on PContext notice acknowledgement
```

Jan Keitel

Fix applied.

File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
Line 442, Patchset 3:void AutofillPopupControllerImpl::UpdateDataListValues(
Aisulu Rakhmetullina . resolved

For my own education:

do I understand correctly, that while `RemoveSuggestion()`'s name is semantically a subset of actions that update the suggestions list, we have it and `UpdateDataListValues()` separately because the latter is about responding to the backend changes and the former is about processing user initiated actions?

Jan Keitel

Well, they're also truly different things. `UpdateDataListValues` updates [datalist attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/datalist) of a form element.

Line 770, Patchset 3: return std::ranges::none_of(GetSuggestions(), &IsStandaloneSuggestionType,
Aisulu Rakhmetullina . resolved

For my own education:

do I understand correctly, that we cannot simply make search bar return true on `IsStandaloneSuggestionType()` cause while it is another row/element in the pop-up, it is not a `Suggestion`?

Jan Keitel

That's correct - it's set passed purely as an argument in the `PopupViewViews` constructor.

File chrome/browser/ui/autofill/autofill_popup_controller_impl_unittest.cc
Line 1170, Patchset 3: RemoveLastSuggestion_DoesNotHidePopupForAtMemory) {
Aisulu Rakhmetullina . resolved

FYI While this perfectly covers the underlying AtMemory logic fix, to fully close the notice bug, I'll be adding broader UI test coverage for the Personal Context notice in a separate follow-up. That will help us ensure the notice's robustness and catch any future regressions (like this one) across surfaces.

Tracked in http://b/527824462#comment4.

Jan Keitel

SG, thank you!

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: Ib68732e82cbd2138c9e81ededdf535e2b09c628e
Gerrit-Change-Number: 8119454
Gerrit-PatchSet: 4
Gerrit-Owner: Jan Keitel <jke...@google.com>
Gerrit-Reviewer: Aisulu Rakhmetullina <ais...@google.com>
Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
Gerrit-Reviewer: Jan Keitel <jke...@google.com>
Gerrit-CC: Rahim Mammadli <rah...@google.com>
Gerrit-Comment-Date: Mon, 20 Jul 2026 16:58:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Aisulu Rakhmetullina <ais...@google.com>
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jul 20, 2026, 1:04:18 PM (yesterday) Jul 20
to Jan Keitel, Aisulu Rakhmetullina, Ireneusz Szulc, Rahim Mammadli, chromium...@chromium.org

Chromium LUCI CQ submitted the change

Unreviewed changes

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

Change information

Commit message:
Do not hide on PContext notice acknowledgement

Removing a popup suggestion triggers evaluating whether the popup
still "has suggestions". In particular, the search bar does not count
as a suggestion.

This CL modifies this condition to return that the popup still
has non-trivial suggestion content as long as the trigger source is
AtMemory because AtMemory always has a search box (which is enough
for us to not hide).
Fixed: 536773588, 521307770
Change-Id: Ib68732e82cbd2138c9e81ededdf535e2b09c628e
Reviewed-by: Ireneusz Szulc <ireneu...@google.com>
Commit-Queue: Jan Keitel <jke...@google.com>
Reviewed-by: Aisulu Rakhmetullina <ais...@google.com>
Cr-Commit-Position: refs/heads/main@{#1664767}
Files:
  • M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
  • M chrome/browser/ui/autofill/autofill_popup_controller_impl.h
  • M chrome/browser/ui/autofill/autofill_popup_controller_impl_test_api.h
  • M chrome/browser/ui/autofill/autofill_popup_controller_impl_unittest.cc
Change size: M
Delta: 4 files changed, 43 insertions(+), 15 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Ireneusz Szulc, +1 by Aisulu Rakhmetullina
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: Ib68732e82cbd2138c9e81ededdf535e2b09c628e
Gerrit-Change-Number: 8119454
Gerrit-PatchSet: 5
Gerrit-Owner: Jan Keitel <jke...@google.com>
Gerrit-Reviewer: Aisulu Rakhmetullina <ais...@google.com>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
Gerrit-Reviewer: Jan Keitel <jke...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages