Autofill: Update MemorySearchResult to have metadata list, errors and types [chromium/src : main]

0 views
Skip to first unread message

Ireneusz Szulc (Gerrit)

unread,
Mar 17, 2026, 9:35:07 AM (7 days ago) Mar 17
to Tanmay Patil, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
Attention needed from Christoph Schwering, Kevin Puthusseri, Tanmay Patil and Xufan Xiong

Ireneusz Szulc added 1 comment

File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
Line 122, Patchset 15:std::u16string GetEntryTypeLabel(accessibility_annotator::EntryType type) {
Ireneusz Szulc . resolved

I think this function shouldn't live here. It's too related to @memory. It could be moved to `components/autofill/core/browser/at_memory/at_memory_data_type.cc`

Tanmay Patil

Since you suggested below, that the labels do not need to show type strings removing this completely.

Ireneusz Szulc

Hang on, this function is needed but in other place. Right now, nothing sets value for `.type_name` and it remains empty. I'll reimplement it back.

Open in Gerrit

Related details

Attention is currently required from:
  • Christoph Schwering
  • Kevin Puthusseri
  • Tanmay Patil
  • Xufan Xiong
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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
Gerrit-Change-Number: 7654073
Gerrit-PatchSet: 17
Gerrit-Owner: Tanmay Patil <tan...@google.com>
Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
Gerrit-Attention: Tanmay Patil <tan...@google.com>
Gerrit-Attention: Xufan Xiong <xu...@google.com>
Gerrit-Attention: Kevin Puthusseri <psk...@google.com>
Gerrit-Attention: Christoph Schwering <schw...@google.com>
Gerrit-Comment-Date: Tue, 17 Mar 2026 13:34:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tanmay Patil <tan...@google.com>
Comment-In-Reply-To: Ireneusz Szulc <ireneu...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Xufan Xiong (Gerrit)

unread,
Mar 17, 2026, 3:01:05 PM (7 days ago) Mar 17
to Tanmay Patil, Ireneusz Szulc, Chromium LUCI CQ, Kevin Puthusseri, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
Attention needed from Christoph Schwering, Ireneusz Szulc, Kevin Puthusseri and Tanmay Patil

Xufan Xiong added 1 comment

File components/accessibility_annotator/core/accessibility_query_service.h
Line 35, Patchset 17 (Latest): virtual MemorySearchResult Query(const std::u16string& query);
Xufan Xiong . unresolved

I see the parameter type for `Query` was changed from `std::u16string_view` to `const std::u16string&`. Was there a specific reason for this?

Open in Gerrit

Related details

Attention is currently required from:
  • Christoph Schwering
  • Ireneusz Szulc
  • Kevin Puthusseri
  • Tanmay Patil
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
    Gerrit-Change-Number: 7654073
    Gerrit-PatchSet: 17
    Gerrit-Owner: Tanmay Patil <tan...@google.com>
    Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
    Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
    Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
    Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
    Gerrit-Attention: Tanmay Patil <tan...@google.com>
    Gerrit-Attention: Kevin Puthusseri <psk...@google.com>
    Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
    Gerrit-Attention: Christoph Schwering <schw...@google.com>
    Gerrit-Comment-Date: Tue, 17 Mar 2026 19:00:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kevin Puthusseri (Gerrit)

    unread,
    Mar 17, 2026, 3:26:52 PM (7 days ago) Mar 17
    to Tanmay Patil, Ireneusz Szulc, Chromium LUCI CQ, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
    Attention needed from Christoph Schwering, Ireneusz Szulc and Tanmay Patil

    Kevin Puthusseri added 1 comment

    File components/accessibility_annotator/core/accessibility_query_service.h
    Line 35, Patchset 17 (Latest): virtual MemorySearchResult Query(const std::u16string& query);
    Xufan Xiong . unresolved

    I see the parameter type for `Query` was changed from `std::u16string_view` to `const std::u16string&`. Was there a specific reason for this?

    Kevin Puthusseri

    The original query string may be deallocated while the service does async work. See https://chromium-review.git.corp.google.com/c/chromium/src/+/7658343/comment/91f3c73d_53b44280/ for more context.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Christoph Schwering
    • Ireneusz Szulc
    • Tanmay Patil
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
    Gerrit-Change-Number: 7654073
    Gerrit-PatchSet: 17
    Gerrit-Owner: Tanmay Patil <tan...@google.com>
    Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
    Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
    Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
    Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
    Gerrit-Attention: Tanmay Patil <tan...@google.com>
    Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
    Gerrit-Attention: Christoph Schwering <schw...@google.com>
    Gerrit-Comment-Date: Tue, 17 Mar 2026 19:26:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Xufan Xiong <xu...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Xufan Xiong (Gerrit)

    unread,
    Mar 17, 2026, 4:19:05 PM (7 days ago) Mar 17
    to Tanmay Patil, Ireneusz Szulc, Chromium LUCI CQ, Kevin Puthusseri, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
    Attention needed from Christoph Schwering, Ireneusz Szulc, Kevin Puthusseri and Tanmay Patil

    Xufan Xiong added 1 comment

    File components/accessibility_annotator/core/accessibility_query_service.h
    Line 35, Patchset 17 (Latest): virtual MemorySearchResult Query(const std::u16string& query);
    Xufan Xiong . resolved

    I see the parameter type for `Query` was changed from `std::u16string_view` to `const std::u16string&`. Was there a specific reason for this?

    Kevin Puthusseri

    The original query string may be deallocated while the service does async work. See https://chromium-review.git.corp.google.com/c/chromium/src/+/7658343/comment/91f3c73d_53b44280/ for more context.

    Xufan Xiong

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Christoph Schwering
    • Ireneusz Szulc
    • Kevin Puthusseri
    • Tanmay Patil
    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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
      Gerrit-Change-Number: 7654073
      Gerrit-PatchSet: 17
      Gerrit-Owner: Tanmay Patil <tan...@google.com>
      Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
      Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
      Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
      Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
      Gerrit-Attention: Tanmay Patil <tan...@google.com>
      Gerrit-Attention: Kevin Puthusseri <psk...@google.com>
      Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
      Gerrit-Attention: Christoph Schwering <schw...@google.com>
      Gerrit-Comment-Date: Tue, 17 Mar 2026 20:18:54 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Xufan Xiong <xu...@google.com>
      Comment-In-Reply-To: Kevin Puthusseri <psk...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kevin Puthusseri (Gerrit)

      unread,
      Mar 19, 2026, 3:08:44 PM (5 days ago) Mar 19
      to Tanmay Patil, Ireneusz Szulc, Chromium LUCI CQ, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
      Attention needed from Christoph Schwering, Ireneusz Szulc and Tanmay Patil

      Kevin Puthusseri added 3 comments

      File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
      Line 102, Patchset 19 (Latest): kGeminiFailure, // Call to gemini via. MES failed.
      Kevin Puthusseri . unresolved
      [nit]: remove keyword `MES`.
      ```suggestion
      kGeminiFailure, // Call to gemini failed.
      ```
      Line 78, Patchset 19 (Latest): std::u16string type_name;
      Kevin Puthusseri . unresolved

      @ireneu...@google.com, should this be optional? As we discussed offline, this field should only be set if entry type is unknown. Otherwise, it should be empty and we'll have some shared map that does translation between type <> type_name.

      Line 77, Patchset 19 (Latest): // Number"). It has to be filled with free-form text even for unknown types.
      Kevin Puthusseri . unresolved
      Clarifying usage of this filled to specify that it should only be used if type is unknown. 
      ```suggestion
      // Number"). It has to be filled with free-form text only for unknown types.
      ```
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Christoph Schwering
      • Ireneusz Szulc
      • Tanmay Patil
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
        Gerrit-Change-Number: 7654073
        Gerrit-PatchSet: 19
        Gerrit-Owner: Tanmay Patil <tan...@google.com>
        Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
        Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
        Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
        Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
        Gerrit-Attention: Tanmay Patil <tan...@google.com>
        Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
        Gerrit-Attention: Christoph Schwering <schw...@google.com>
        Gerrit-Comment-Date: Thu, 19 Mar 2026 19:08:33 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Xufan Xiong (Gerrit)

        unread,
        Mar 19, 2026, 6:06:34 PM (4 days ago) Mar 19
        to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Christoph Schwering, Ireneusz Szulc and Tanmay Patil

        Xufan Xiong added 1 comment

        Patchset-level comments
        File-level comment, Patchset 19 (Latest):
        Xufan Xiong . resolved

        LGTM. I don't have access to +1, so left a comment here.

        Gerrit-CC: Karan Shukla <karan...@google.com>
        Gerrit-Attention: Tanmay Patil <tan...@google.com>
        Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
        Gerrit-Attention: Christoph Schwering <schw...@google.com>
        Gerrit-Comment-Date: Thu, 19 Mar 2026 22:06:25 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Xufan Xiong (Gerrit)

        unread,
        Mar 20, 2026, 4:57:14 AM (4 days ago) Mar 20
        to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Christoph Schwering, Ireneusz Szulc and Tanmay Patil

        Xufan Xiong added 1 comment

        Patchset-level comments
        Xufan Xiong . unresolved

        @schw...@google.com Friendly ping, can we get the +1 for this CL?

        Gerrit-Comment-Date: Fri, 20 Mar 2026 08:57:05 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Ireneusz Szulc (Gerrit)

        unread,
        Mar 20, 2026, 5:14:23 AM (4 days ago) Mar 20
        to Tanmay Patil, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Christoph Schwering, Kevin Puthusseri and Tanmay Patil

        Ireneusz Szulc added 3 comments

        File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
        Line 102, Patchset 19 (Latest): kGeminiFailure, // Call to gemini via. MES failed.
        Kevin Puthusseri . resolved
        [nit]: remove keyword `MES`.
        ```suggestion
        kGeminiFailure, // Call to gemini failed.
        ```
        Ireneusz Szulc

        Done

        Line 78, Patchset 19 (Latest): std::u16string type_name;
        Kevin Puthusseri . unresolved

        @ireneu...@google.com, should this be optional? As we discussed offline, this field should only be set if entry type is unknown. Otherwise, it should be empty and we'll have some shared map that does translation between type <> type_name.

        Ireneusz Szulc

        The same point here: Can't we make this required since we always need to have the type name?

        Line 77, Patchset 19 (Latest): // Number"). It has to be filled with free-form text even for unknown types.
        Kevin Puthusseri . unresolved
        Clarifying usage of this filled to specify that it should only be used if type is unknown. 
        ```suggestion
        // Number"). It has to be filled with free-form text only for unknown types.
        ```
        Ireneusz Szulc

        Actually, my intention is the opposite. The type name is always required, while the enum type might be unknown. That's why I'd prefer the name to be pre-filled before it reaches the UI layer. I know that the `type -> name` mapping exists somewhere anyways, so it's just a matter of where we perform this evaluation. The rationale is to keep the UI decoupled from the implementation details of the underlying data sources. Whether the data originates from Autofill, Gemini, or anything else, the name can be evaluated directly at the source, potentially making use of additional context.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Christoph Schwering
        • Kevin Puthusseri
        • Tanmay Patil
        Gerrit-Attention: Kevin Puthusseri <psk...@google.com>
        Gerrit-Attention: Christoph Schwering <schw...@google.com>
        Gerrit-Comment-Date: Fri, 20 Mar 2026 09:14:06 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Kevin Puthusseri <psk...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Kevin Puthusseri (Gerrit)

        unread,
        Mar 20, 2026, 6:56:48 AM (4 days ago) Mar 20
        to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Christoph Schwering, Ireneusz Szulc and Tanmay Patil

        Kevin Puthusseri added 2 comments

        File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
        Line 78, Patchset 19: std::u16string type_name;
        Kevin Puthusseri . unresolved

        @ireneu...@google.com, should this be optional? As we discussed offline, this field should only be set if entry type is unknown. Otherwise, it should be empty and we'll have some shared map that does translation between type <> type_name.

        Ireneusz Szulc

        The same point here: Can't we make this required since we always need to have the type name?

        Kevin Puthusseri

        Same point from the thread earlier.

        Line 77, Patchset 19: // Number"). It has to be filled with free-form text even for unknown types.
        Kevin Puthusseri . unresolved
        Clarifying usage of this filled to specify that it should only be used if type is unknown. 
        ```suggestion
        // Number"). It has to be filled with free-form text only for unknown types.
        ```
        Ireneusz Szulc

        Actually, my intention is the opposite. The type name is always required, while the enum type might be unknown. That's why I'd prefer the name to be pre-filled before it reaches the UI layer. I know that the `type -> name` mapping exists somewhere anyways, so it's just a matter of where we perform this evaluation. The rationale is to keep the UI decoupled from the implementation details of the underlying data sources. Whether the data originates from Autofill, Gemini, or anything else, the name can be evaluated directly at the source, potentially making use of additional context.

        Kevin Puthusseri

        I think we agree on making things easier wherever possible. The point here was to _not_ have the memory service dictate the locale friendly type names unless absolutely required. This is something the UI should own since it should be easy to change and adapt per UX/product requirements without impacting the logic that returns the type themselves. Does that make sense? Moreover, I expect other things to be tied to the type name (such as icons).

        The API here is to let consumers of the memory service know that we don't have a known type which is why, using an LLM for resolution, we're generating the name of the new type. If we always returned a known type, this string field would not be a part of the API.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Christoph Schwering
        • Ireneusz Szulc
        • Tanmay Patil
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
        Gerrit-Change-Number: 7654073
        Gerrit-PatchSet: 21
        Gerrit-Owner: Tanmay Patil <tan...@google.com>
        Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
        Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
        Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
        Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
        Gerrit-CC: Karan Shukla <karan...@google.com>
        Gerrit-Attention: Tanmay Patil <tan...@google.com>
        Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
        Gerrit-Attention: Christoph Schwering <schw...@google.com>
        Gerrit-Comment-Date: Fri, 20 Mar 2026 10:56:39 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Kevin Puthusseri <psk...@google.com>
        Comment-In-Reply-To: Ireneusz Szulc <ireneu...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Christoph Schwering (Gerrit)

        unread,
        Mar 20, 2026, 9:24:33 AM (4 days ago) Mar 20
        to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Ireneusz Szulc and Tanmay Patil

        Christoph Schwering added 10 comments

        File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
        Line 937, Patchset 21 (Latest): for (const auto& metadata : entry.metadata_list) {
        Christoph Schwering . unresolved

        nit: spell out the type

        File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
        Line 63, Patchset 18: bool operator==(const MemoryEntry& other) const = default;
        Christoph Schwering . unresolved

        nit: move up?

        Line 34, Patchset 18:struct MemoryEntry {
        Christoph Schwering . unresolved

        We have way too many structs with default constructors in //compontents/aa. So it's completely unclear what members should be and can be assumed to be set. I think this needs to be fixed asap because it's becoming a problem in code review already.

        Line 31, Patchset 18:enum class EntrySource { kAutofill = 0, kGmail, kAmbient, kLiveTabs };
        Christoph Schwering . unresolved

        nit: remove

        Line 51, Patchset 17: // Source of the Entry (eg: kGmail).
        std::vector<EntrySource> source;
        Christoph Schwering . unresolved

        Singular or plural -- can there be multiple sources?

        File components/autofill/core/browser/at_memory/at_memory_data_type.h
        Line 28, Patchset 18:// Translates Autofill attribute names to entry types.
        accessibility_annotator::QueryIntentType AttributeTypeToEntryType(
        AttributeType type);

        // Returns the localized name of the entry type.
        std::u16string GetEntryTypeName(accessibility_annotator::QueryIntentType type);
        Christoph Schwering . unresolved

        Should this live in `from_accessibility_annotator.{cc,h}`?

        Line 32, Patchset 18:// Returns the localized name of the entry type.
        Christoph Schwering . unresolved

        Add `ForI18n` to the function name in analogy to `EntityType::GetNameForI18n()`?

        File components/autofill/core/browser/at_memory/at_memory_data_type.cc
        Line 191, Patchset 21 (Latest): if (data_type && std::holds_alternative<EntityType>(*data_type)) {
        Christoph Schwering . unresolved

        nit: `get_if`

        File components/autofill/core/browser/at_memory/autofill_data_provider_impl.cc
        Line 272, Patchset 18: MemoryEntry entry;
        Christoph Schwering . unresolved

        Please avoid default-constructed structs.

        Line 277, Patchset 18: EntryMetadata metadata;
        Christoph Schwering . unresolved

        Same as above.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Ireneusz Szulc
        • Tanmay Patil
        Gerrit-Comment-Date: Fri, 20 Mar 2026 13:24:20 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Ireneusz Szulc (Gerrit)

        unread,
        Mar 20, 2026, 10:41:30 AM (4 days ago) Mar 20
        to Tanmay Patil, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Christoph Schwering, Kevin Puthusseri and Tanmay Patil

        Ireneusz Szulc added 6 comments

        File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
        Line 937, Patchset 21: for (const auto& metadata : entry.metadata_list) {
        Christoph Schwering . resolved

        nit: spell out the type

        Ireneusz Szulc

        Done

        File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
        Line 78, Patchset 19: std::u16string type_name;
        Kevin Puthusseri . resolved

        @ireneu...@google.com, should this be optional? As we discussed offline, this field should only be set if entry type is unknown. Otherwise, it should be empty and we'll have some shared map that does translation between type <> type_name.

        Ireneusz Szulc

        The same point here: Can't we make this required since we always need to have the type name?

        Kevin Puthusseri

        Same point from the thread earlier.

        Ireneusz Szulc

        Done

        Line 77, Patchset 19: // Number"). It has to be filled with free-form text even for unknown types.
        Kevin Puthusseri . resolved
        Clarifying usage of this filled to specify that it should only be used if type is unknown. 
        ```suggestion
        // Number"). It has to be filled with free-form text only for unknown types.
        ```
        Ireneusz Szulc

        Actually, my intention is the opposite. The type name is always required, while the enum type might be unknown. That's why I'd prefer the name to be pre-filled before it reaches the UI layer. I know that the `type -> name` mapping exists somewhere anyways, so it's just a matter of where we perform this evaluation. The rationale is to keep the UI decoupled from the implementation details of the underlying data sources. Whether the data originates from Autofill, Gemini, or anything else, the name can be evaluated directly at the source, potentially making use of additional context.

        Kevin Puthusseri

        I think we agree on making things easier wherever possible. The point here was to _not_ have the memory service dictate the locale friendly type names unless absolutely required. This is something the UI should own since it should be easy to change and adapt per UX/product requirements without impacting the logic that returns the type themselves. Does that make sense? Moreover, I expect other things to be tied to the type name (such as icons).

        The API here is to let consumers of the memory service know that we don't have a known type which is why, using an LLM for resolution, we're generating the name of the new type. If we always returned a known type, this string field would not be a part of the API.

        Ireneusz Szulc

        As discussed offline, I'll change it to allow empty strings in the type name (though it's encouraged to fill it to improve filtering, etc.). In such case Autofill would evaluate it on UI if it's missing.

        Line 63, Patchset 18: bool operator==(const MemoryEntry& other) const = default;
        Christoph Schwering . resolved

        nit: move up?

        Ireneusz Szulc

        Done

        Line 31, Patchset 18:enum class EntrySource { kAutofill = 0, kGmail, kAmbient, kLiveTabs };
        Christoph Schwering . resolved

        nit: remove

        Ireneusz Szulc

        Done

        Line 51, Patchset 17: // Source of the Entry (eg: kGmail).
        std::vector<EntrySource> source;
        Christoph Schwering . resolved

        Singular or plural -- can there be multiple sources?

        Ireneusz Szulc

        Right, I've changed it to plural already.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Christoph Schwering
        • Kevin Puthusseri
        • Tanmay Patil
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
        Gerrit-Change-Number: 7654073
        Gerrit-PatchSet: 23
        Gerrit-Owner: Tanmay Patil <tan...@google.com>
        Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
        Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
        Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
        Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
        Gerrit-CC: Karan Shukla <karan...@google.com>
        Gerrit-Attention: Tanmay Patil <tan...@google.com>
        Gerrit-Attention: Kevin Puthusseri <psk...@google.com>
        Gerrit-Attention: Christoph Schwering <schw...@google.com>
        Gerrit-Comment-Date: Fri, 20 Mar 2026 14:41:16 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Kevin Puthusseri <psk...@google.com>
        Comment-In-Reply-To: Ireneusz Szulc <ireneu...@google.com>
        Comment-In-Reply-To: Christoph Schwering <schw...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Ireneusz Szulc (Gerrit)

        unread,
        Mar 20, 2026, 12:25:03 PM (4 days ago) Mar 20
        to Tanmay Patil, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
        Attention needed from Christoph Schwering, Tanmay Patil and Xufan Xiong

        Ireneusz Szulc added 7 comments

        Patchset-level comments
        File-level comment, Patchset 19:
        Xufan Xiong . resolved

        @schw...@google.com Friendly ping, can we get the +1 for this CL?

        Ireneusz Szulc

        Acknowledged

        File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
        Line 34, Patchset 18:struct MemoryEntry {
        Christoph Schwering . resolved

        We have way too many structs with default constructors in //compontents/aa. So it's completely unclear what members should be and can be assumed to be set. I think this needs to be fixed asap because it's becoming a problem in code review already.

        Ireneusz Szulc

        Done

        File components/autofill/core/browser/at_memory/at_memory_data_type.h
        Line 28, Patchset 18:// Translates Autofill attribute names to entry types.
        accessibility_annotator::QueryIntentType AttributeTypeToEntryType(
        AttributeType type);

        // Returns the localized name of the entry type.
        std::u16string GetEntryTypeName(accessibility_annotator::QueryIntentType type);
        Christoph Schwering . resolved

        Should this live in `from_accessibility_annotator.{cc,h}`?

        Ireneusz Szulc

        Okay, I can move them to components/autofill/core/browser/data_model/autofill_ai/from_accessibility_annotator.cc

        Line 32, Patchset 18:// Returns the localized name of the entry type.
        Christoph Schwering . resolved

        Add `ForI18n` to the function name in analogy to `EntityType::GetNameForI18n()`?

        Ireneusz Szulc

        Done

        File components/autofill/core/browser/at_memory/at_memory_data_type.cc
        Line 191, Patchset 21: if (data_type && std::holds_alternative<EntityType>(*data_type)) {
        Christoph Schwering . resolved

        nit: `get_if`

        Ireneusz Szulc

        Done

        File components/autofill/core/browser/at_memory/autofill_data_provider_impl.cc
        Line 272, Patchset 18: MemoryEntry entry;
        Christoph Schwering . resolved

        Please avoid default-constructed structs.

        Ireneusz Szulc

        Done

        Line 277, Patchset 18: EntryMetadata metadata;
        Christoph Schwering . resolved

        Same as above.

        Ireneusz Szulc

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Christoph Schwering
        • Tanmay Patil
        • Xufan Xiong
        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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
          Gerrit-Change-Number: 7654073
          Gerrit-PatchSet: 26
          Gerrit-Owner: Tanmay Patil <tan...@google.com>
          Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
          Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
          Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
          Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
          Gerrit-CC: Karan Shukla <karan...@google.com>
          Gerrit-Attention: Tanmay Patil <tan...@google.com>
          Gerrit-Attention: Xufan Xiong <xu...@google.com>
          Gerrit-Attention: Christoph Schwering <schw...@google.com>
          Gerrit-Comment-Date: Fri, 20 Mar 2026 16:24:50 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Xufan Xiong <xu...@google.com>
          Comment-In-Reply-To: Christoph Schwering <schw...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Christoph Schwering (Gerrit)

          unread,
          Mar 20, 2026, 3:24:32 PM (4 days ago) Mar 20
          to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
          Attention needed from Ireneusz Szulc, Tanmay Patil and Xufan Xiong

          Christoph Schwering added 11 comments

          Commit Message
          Line 8, Patchset 26 (Latest):
          Christoph Schwering . unresolved

          Please add a CL description

          File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
          Line 957, Patchset 26 (Latest): for (const auto& metadata : entry.metadata_list) {
          Christoph Schwering . unresolved

          nit: spell out the type

          File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
          Line 99, Patchset 26 (Latest): kFinalResponseSuccess = 0, // Final response with all data-sources.
          Christoph Schwering . unresolved

          nit: remove?

          Enums start with `0` by default. We usually either specify all numbers (if they matter) or none.

          File components/autofill/core/browser/at_memory/autofill_data_provider_impl.cc
          Line 53, Patchset 26 (Latest):// Creates a data entry for a specific attribute of an Autofill AI entity
          Christoph Schwering . unresolved

          nit: punctuation

          Line 58, Patchset 26 (Latest): MemoryEntry entry(
          Christoph Schwering . unresolved

          nit: `Memory entry = MemotryEntry(...` (go/totw/88)

          Same elsewhere

          Line 58, Patchset 26 (Latest): MemoryEntry entry(
          Christoph Schwering . unresolved

          nit: add `[D]CHECK_EQ(entity.type(), attr.entity_type())`?

          Line 65, Patchset 26 (Latest): if (other_attr.type() == attr.type()) {
          Christoph Schwering . unresolved

          Shouldn't this be `other_attr.entity_type() == entity.type()`?

          (The unit tests passes `_` for the `metadata_list` of `EntityInstance`s, I think.)

          Line 207, Patchset 26 (Latest): entry.metadata_list = all_metadata;
          Christoph Schwering . unresolved

          nit: std::move()?

          Line 219, Patchset 26 (Latest): entries.push_back(std::move(attr_entry));
          Christoph Schwering . unresolved

          nitty nit: inline?

          Line 292, Patchset 26 (Latest): std::optional<AtMemoryDataType> autofill_type =
          Christoph Schwering . unresolved

          Since `AutofillType` is a an existing Autofill class, maybe better call this `atmemory_type`.

          Line 338, Patchset 26 (Latest): for (auto& entry : entries) {
          Christoph Schwering . unresolved

          nit: spell out the type

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Ireneusz Szulc
          • Tanmay Patil
          • Xufan Xiong
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
            Gerrit-Change-Number: 7654073
            Gerrit-PatchSet: 26
            Gerrit-Owner: Tanmay Patil <tan...@google.com>
            Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
            Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
            Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
            Gerrit-CC: Karan Shukla <karan...@google.com>
            Gerrit-Attention: Tanmay Patil <tan...@google.com>
            Gerrit-Attention: Xufan Xiong <xu...@google.com>
            Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Comment-Date: Fri, 20 Mar 2026 19:24:16 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Ireneusz Szulc (Gerrit)

            unread,
            Mar 23, 2026, 7:13:46 AM (22 hours ago) Mar 23
            to Tanmay Patil, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
            Attention needed from Christoph Schwering, Tanmay Patil and Xufan Xiong

            Ireneusz Szulc added 11 comments

            Commit Message
            Line 8, Patchset 26:
            Christoph Schwering . resolved

            Please add a CL description

            Ireneusz Szulc

            Done

            File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
            Line 957, Patchset 26: for (const auto& metadata : entry.metadata_list) {
            Christoph Schwering . resolved

            nit: spell out the type

            Ireneusz Szulc

            Done

            File components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
            Line 99, Patchset 26: kFinalResponseSuccess = 0, // Final response with all data-sources.
            Christoph Schwering . resolved

            nit: remove?

            Enums start with `0` by default. We usually either specify all numbers (if they matter) or none.

            Ireneusz Szulc

            Done

            File components/autofill/core/browser/at_memory/autofill_data_provider_impl.cc
            Line 53, Patchset 26:// Creates a data entry for a specific attribute of an Autofill AI entity
            Christoph Schwering . resolved

            nit: punctuation

            Ireneusz Szulc

            Done

            Line 58, Patchset 26: MemoryEntry entry(
            Christoph Schwering . resolved

            nit: add `[D]CHECK_EQ(entity.type(), attr.entity_type())`?

            Ireneusz Szulc

            Done

            Line 58, Patchset 26: MemoryEntry entry(
            Christoph Schwering . resolved

            nit: `Memory entry = MemotryEntry(...` (go/totw/88)

            Same elsewhere

            Ireneusz Szulc

            Done

            Line 65, Patchset 26: if (other_attr.type() == attr.type()) {
            Christoph Schwering . unresolved

            Shouldn't this be `other_attr.entity_type() == entity.type()`?

            (The unit tests passes `_` for the `metadata_list` of `EntityInstance`s, I think.)

            Ireneusz Szulc

            Not really, here we want to get the other attributes from the same entity, so we're excluding the attributes with the same type as the "primary" attribute. In other words, we're looking for sibling attributes.

            Anyway, that's fair point that unit tests didn't verify metadata list, I fixed this now.

            Line 207, Patchset 26: entry.metadata_list = all_metadata;
            Christoph Schwering . resolved

            nit: std::move()?

            Ireneusz Szulc

            Done

            Line 219, Patchset 26: entries.push_back(std::move(attr_entry));
            Christoph Schwering . resolved

            nitty nit: inline?

            Ireneusz Szulc

            Done

            Line 292, Patchset 26: std::optional<AtMemoryDataType> autofill_type =
            Christoph Schwering . resolved

            Since `AutofillType` is a an existing Autofill class, maybe better call this `atmemory_type`.

            Ireneusz Szulc

            Done

            Line 338, Patchset 26: for (auto& entry : entries) {
            Christoph Schwering . resolved

            nit: spell out the type

            Ireneusz Szulc

            Done

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Christoph Schwering
            • Tanmay Patil
            • Xufan Xiong
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
            Gerrit-Change-Number: 7654073
            Gerrit-PatchSet: 27
            Gerrit-Owner: Tanmay Patil <tan...@google.com>
            Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
            Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
            Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
            Gerrit-CC: Karan Shukla <karan...@google.com>
            Gerrit-Attention: Tanmay Patil <tan...@google.com>
            Gerrit-Attention: Xufan Xiong <xu...@google.com>
            Gerrit-Attention: Christoph Schwering <schw...@google.com>
            Gerrit-Comment-Date: Mon, 23 Mar 2026 11:13:33 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Christoph Schwering <schw...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Xufan Xiong (Gerrit)

            unread,
            Mar 23, 2026, 7:51:47 PM (10 hours ago) Mar 23
            to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
            Attention needed from Christoph Schwering, Ireneusz Szulc and Tanmay Patil

            Xufan Xiong added 1 comment

            Patchset-level comments
            File-level comment, Patchset 28 (Latest):
            Xufan Xiong . resolved

            LGTM. I don't have access to +1, waiting for Chris's.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Christoph Schwering
            • Ireneusz Szulc
            • Tanmay Patil
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
            Gerrit-Change-Number: 7654073
            Gerrit-PatchSet: 28
            Gerrit-Owner: Tanmay Patil <tan...@google.com>
            Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
            Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
            Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
            Gerrit-CC: Karan Shukla <karan...@google.com>
            Gerrit-Attention: Tanmay Patil <tan...@google.com>
            Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Attention: Christoph Schwering <schw...@google.com>
            Gerrit-Comment-Date: Mon, 23 Mar 2026 23:51:36 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Christoph Schwering (Gerrit)

            unread,
            Mar 23, 2026, 7:53:47 PM (10 hours ago) Mar 23
            to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
            Attention needed from Ireneusz Szulc and Tanmay Patil

            Christoph Schwering voted and added 2 comments

            Votes added by Christoph Schwering

            Code-Review+1

            2 comments

            File components/autofill/core/browser/at_memory/autofill_data_provider_impl.h
            Line 39, Patchset 28 (Latest): AtMemoryDataType autofill_type);
            Christoph Schwering . unresolved

            nit: `at_memory_type`

            File components/autofill/core/browser/at_memory/autofill_data_provider_impl.cc
            Line 65, Patchset 26: if (other_attr.type() == attr.type()) {
            Christoph Schwering . resolved

            Shouldn't this be `other_attr.entity_type() == entity.type()`?

            (The unit tests passes `_` for the `metadata_list` of `EntityInstance`s, I think.)

            Ireneusz Szulc

            Not really, here we want to get the other attributes from the same entity, so we're excluding the attributes with the same type as the "primary" attribute. In other words, we're looking for sibling attributes.

            Anyway, that's fair point that unit tests didn't verify metadata list, I fixed this now.

            Christoph Schwering

            Got it, thanks.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Ireneusz Szulc
            • Tanmay Patil
            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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
            Gerrit-Change-Number: 7654073
            Gerrit-PatchSet: 28
            Gerrit-Owner: Tanmay Patil <tan...@google.com>
            Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
            Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
            Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
            Gerrit-CC: Karan Shukla <karan...@google.com>
            Gerrit-Attention: Tanmay Patil <tan...@google.com>
            Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Comment-Date: Mon, 23 Mar 2026 23:53:35 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Dominic Battre (Gerrit)

            unread,
            3:16 AM (2 hours ago) 3:16 AM
            to Tanmay Patil, Ireneusz Szulc, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
            Attention needed from Ireneusz Szulc and Tanmay Patil

            Dominic Battre added 1 comment

            File components/autofill/core/browser/at_memory/autofill_data_provider_impl.h
            Line 39, Patchset 28 (Latest): AtMemoryDataType autofill_type);
            Christoph Schwering . unresolved

            nit: `at_memory_type`

            Dominic Battre

            Let's close this comment, land the CL and address it in a followup CL to unlock the rest of the CL chain.

            Gerrit-CC: Dominic Battre <bat...@chromium.org>
            Gerrit-CC: Karan Shukla <karan...@google.com>
            Gerrit-Attention: Tanmay Patil <tan...@google.com>
            Gerrit-Attention: Ireneusz Szulc <ireneu...@google.com>
            Gerrit-Comment-Date: Tue, 24 Mar 2026 07:16:14 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Christoph Schwering <schw...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Ireneusz Szulc (Gerrit)

            unread,
            3:26 AM (2 hours ago) 3:26 AM
            to Tanmay Patil, Dominic Battre, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
            Attention needed from Dominic Battre and Tanmay Patil

            Ireneusz Szulc voted and added 1 comment

            Votes added by Ireneusz Szulc

            Code-Review+1

            1 comment

            File components/autofill/core/browser/at_memory/autofill_data_provider_impl.h
            Line 39, Patchset 28: AtMemoryDataType autofill_type);
            Christoph Schwering . resolved

            nit: `at_memory_type`

            Dominic Battre

            Let's close this comment, land the CL and address it in a followup CL to unlock the rest of the CL chain.

            Ireneusz Szulc

            Acknowledged

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Dominic Battre
            • Tanmay Patil
            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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
              Gerrit-Change-Number: 7654073
              Gerrit-PatchSet: 29
              Gerrit-Owner: Tanmay Patil <tan...@google.com>
              Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
              Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
              Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
              Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
              Gerrit-CC: Dominic Battre <bat...@chromium.org>
              Gerrit-CC: Karan Shukla <karan...@google.com>
              Gerrit-Attention: Dominic Battre <bat...@chromium.org>
              Gerrit-Attention: Tanmay Patil <tan...@google.com>
              Gerrit-Comment-Date: Tue, 24 Mar 2026 07:26:09 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              Comment-In-Reply-To: Dominic Battre <bat...@chromium.org>
              Comment-In-Reply-To: Christoph Schwering <schw...@google.com>
              satisfied_requirement
              open
              diffy

              Ireneusz Szulc (Gerrit)

              unread,
              3:26 AM (2 hours ago) 3:26 AM
              to Tanmay Patil, Dominic Battre, Karan Shukla, Chromium LUCI CQ, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org
              Attention needed from Dominic Battre and Tanmay Patil

              Ireneusz Szulc voted Commit-Queue+2

              Commit-Queue+2
              Gerrit-Comment-Date: Tue, 24 Mar 2026 07:26:27 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Chromium LUCI CQ (Gerrit)

              unread,
              3:30 AM (2 hours ago) 3:30 AM
              to Tanmay Patil, Ireneusz Szulc, Dominic Battre, Karan Shukla, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org

              Chromium LUCI CQ submitted the change

              Change information

              Commit message:
              Autofill: Update MemorySearchResult to have metadata list, errors and types

              This change refactors the data structures used for search results
              to support structured metadata and improved status reporting.
              It allows for returning partial results while the search is still
              running.
              The new API schema adds attribution to a data source for each individual
              search result.
              Flat description of a search result has transitioned into a structured
              metadata list, which would allow for displaying nested results in
              future.

              Need for API changes:
              https://docs.google.com/document/d/17tEOy0milfIAkSq043020wZC8Yx5l9qsHdJ2eG_Ao3U/edit?pli=1&tab=t.w7qpqpq7vv8v

              BYPASS_LARGE_CHANGE_WARNING: CL adds boiler plate conversions

              Low-Coverage-Reason: LARGE_SCALE_REFACTOR
              Bug: b:492133657
              Change-Id: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
              Reviewed-by: Ireneusz Szulc <ireneu...@google.com>
              Reviewed-by: Christoph Schwering <schw...@google.com>
              Commit-Queue: Ireneusz Szulc <ireneu...@google.com>
              Cr-Commit-Position: refs/heads/main@{#1603923}
              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_unittest.cc
              • M chrome/browser/ui/autofill/mock_accessibility_query_service.h
              • M components/accessibility_annotator/core/accessibility_query_service.cc
              • M components/accessibility_annotator/core/accessibility_query_service.h
              • M components/accessibility_annotator/core/accessibility_query_service_unittest.cc
              • M components/accessibility_annotator/core/annotation_reducer/memory_search_result.cc
              • M components/accessibility_annotator/core/annotation_reducer/memory_search_result.h
              • M components/accessibility_annotator/core/annotation_reducer/query_intent_type.h
              • M components/autofill/core/browser/at_memory/at_memory_data_type.cc
              • M components/autofill/core/browser/at_memory/at_memory_data_type.h
              • M components/autofill/core/browser/at_memory/at_memory_data_type_unittest.cc
              • M components/autofill/core/browser/at_memory/autofill_data_provider_impl.cc
              • M components/autofill/core/browser/at_memory/autofill_data_provider_impl.h
              • M components/autofill/core/browser/at_memory/autofill_data_provider_impl_unittest.cc
              • M components/autofill/core/browser/data_model/autofill_ai/from_accessibility_annotator.cc
              • M components/autofill/core/browser/data_model/autofill_ai/from_accessibility_annotator.h
              Change size: XL
              Delta: 18 files changed, 815 insertions(+), 268 deletions(-)
              Branch: refs/heads/main
              Submit Requirements:
              • requirement satisfiedCode-Review: +1 by Christoph Schwering, +1 by Ireneusz Szulc
              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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
              Gerrit-Change-Number: 7654073
              Gerrit-PatchSet: 30
              Gerrit-Owner: Tanmay Patil <tan...@google.com>
              Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
              Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
              Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
              Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
              Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
              open
              diffy
              satisfied_requirement

              luci-bisection@appspot.gserviceaccount.com (Gerrit)

              unread,
              3:59 AM (2 hours ago) 3:59 AM
              to Tanmay Patil, Chromium LUCI CQ, Ireneusz Szulc, Dominic Battre, Karan Shukla, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org

              Message from luci-bi...@appspot.gserviceaccount.com

              LUCI Bisection has identified this change as the culprit of a build failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/compile-analysis/b/8686465712814222401

              A revert for this change was not created because the builder that this CL broke is not watched by gardeners, therefore less important. You can consider revert this CL, fix forward or let builder owners resolve it themselves.

              Sample failed build: https://ci.chromium.org/b/8686465712814222401

              If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F7654073&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Fcompile-analysis%2Fb%2F8686465712814222401&type=BUG

              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: Id59d9c0d2d749cf5cd113c85c0d19e5ff18265e4
              Gerrit-Change-Number: 7654073
              Gerrit-PatchSet: 30
              Gerrit-Owner: Tanmay Patil <tan...@google.com>
              Gerrit-Reviewer: Christoph Schwering <schw...@google.com>
              Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
              Gerrit-Reviewer: Ireneusz Szulc <ireneu...@google.com>
              Gerrit-Reviewer: Kevin Puthusseri <psk...@google.com>
              Gerrit-Reviewer: Xufan Xiong <xu...@google.com>
              Gerrit-CC: Dominic Battre <bat...@chromium.org>
              Gerrit-CC: Karan Shukla <karan...@google.com>
              Gerrit-Comment-Date: Tue, 24 Mar 2026 07:59:06 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: No
              satisfied_requirement
              open
              diffy

              luci-bisection@appspot.gserviceaccount.com (Gerrit)

              unread,
              4:04 AM (2 hours ago) 4:04 AM
              to Tanmay Patil, Chromium LUCI CQ, Ireneusz Szulc, Dominic Battre, Karan Shukla, Kevin Puthusseri, Xufan Xiong, AyeAye, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org, eme-r...@chromium.org, devtools...@chromium.org, accessibility-a...@google.com, browser-comp...@chromium.org

              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: revert
              satisfied_requirement
              open
              diffy
              Reply all
              Reply to author
              Forward
              0 new messages