[IOS][AIM]Do not show typed suggestions when composebox has attachments [chromium/src : main]

0 views
Skip to first unread message

Ameur Hosni (Gerrit)

unread,
Dec 1, 2025, 1:41:44 PM (5 days ago) Dec 1
to Nihar Majmudar, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
Attention needed from Christian Xu and Nihar Majmudar

Ameur Hosni voted and added 1 comment

Votes added by Ameur Hosni

Commit-Queue+1

1 comment

File components/omnibox/browser/search_provider.cc
Line 708, Patchset 2:#if BUILDFLAG(IS_IOS)
Ameur Hosni . resolved

`kLensOverlayContextualSearchbox` seems to have too many parameters that are very specific to desktop. In addition to that I think for ios we also need to ensure that we clear results.
For convenience adding this platform check to ensure this code path is executed for iOS.
I suspect this is the same for android as well. FYI @en...@google.com

Open in Gerrit

Related details

Attention is currently required from:
  • Christian Xu
  • Nihar Majmudar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
Gerrit-Change-Number: 7213565
Gerrit-PatchSet: 4
Gerrit-Owner: Ameur Hosni <ameur...@google.com>
Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
Gerrit-Attention: Nihar Majmudar <nih...@google.com>
Gerrit-Attention: Christian Xu <chris...@chromium.org>
Gerrit-Comment-Date: Mon, 01 Dec 2025 18:41:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Nihar Majmudar (Gerrit)

unread,
Dec 1, 2025, 4:30:39 PM (5 days ago) Dec 1
to Ameur Hosni, Chromium LUCI CQ, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
Attention needed from Ameur Hosni and Christian Xu

Nihar Majmudar added 3 comments

File components/omnibox/browser/autocomplete_result.cc
Line 637, Patchset 4 (Latest): case OmniboxEventProto::CONTEXTUAL_SEARCHBOX:
Nihar Majmudar . unresolved

Why not keep this NTP_COMPOSEBOX, comments in `composebox_omnibox_client.mm` still apply, regarding creating a new page classification for iOS

File components/omnibox/browser/search_provider.cc
Line 715, Patchset 4 (Latest): StopSuggest();
ClearAllResults();
return;
Nihar Majmudar . unresolved

Why is this needed? Won't other results not show already if we're going to be returning the verbatim match only?

File ios/chrome/browser/composebox/coordinator/composebox_omnibox_client.mm
Line 165, Patchset 4 (Latest): return metrics::OmniboxEventProto::NTP_COMPOSEBOX;
Nihar Majmudar . unresolved

should iOS eventually have its own page classifications? Also why do we need to return the contextual searchbox page classification if there are attachments?

This gets handled later on for composebox's: https://source.chromium.org/chromium/chromium/src/+/main:components/omnibox/browser/remote_suggestions_service.cc;l=319-323?q=chrome-contextual

Open in Gerrit

Related details

Attention is currently required from:
  • Ameur Hosni
  • Christian Xu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
    Gerrit-Change-Number: 7213565
    Gerrit-PatchSet: 4
    Gerrit-Owner: Ameur Hosni <ameur...@google.com>
    Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
    Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
    Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
    Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
    Gerrit-Attention: Ameur Hosni <ameur...@google.com>
    Gerrit-Attention: Christian Xu <chris...@chromium.org>
    Gerrit-Comment-Date: Mon, 01 Dec 2025 21:30:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ameur Hosni (Gerrit)

    unread,
    Dec 2, 2025, 5:37:28 AM (5 days ago) Dec 2
    to Chromium LUCI CQ, Nihar Majmudar, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
    Attention needed from Christian Xu and Nihar Majmudar

    Ameur Hosni added 3 comments

    File components/omnibox/browser/autocomplete_result.cc
    Line 637, Patchset 4 (Latest): case OmniboxEventProto::CONTEXTUAL_SEARCHBOX:
    Nihar Majmudar . unresolved

    Why not keep this NTP_COMPOSEBOX, comments in `composebox_omnibox_client.mm` still apply, regarding creating a new page classification for iOS

    Ameur Hosni

    We still want to identify if composebox has attachments (see my reply in composebox_omnibox_client.mm).

    File components/omnibox/browser/search_provider.cc
    Line 715, Patchset 4 (Latest): StopSuggest();
    ClearAllResults();
    return;
    Nihar Majmudar . unresolved

    Why is this needed? Won't other results not show already if we're going to be returning the verbatim match only?

    Ameur Hosni

    I thought this is needed to prevent this bug : https://g-issues.chromium.org/issues/463999790

    File ios/chrome/browser/composebox/coordinator/composebox_omnibox_client.mm
    Line 165, Patchset 4 (Latest): return metrics::OmniboxEventProto::NTP_COMPOSEBOX;
    Nihar Majmudar . unresolved

    should iOS eventually have its own page classifications? Also why do we need to return the contextual searchbox page classification if there are attachments?

    This gets handled later on for composebox's: https://source.chromium.org/chromium/chromium/src/+/main:components/omnibox/browser/remote_suggestions_service.cc;l=319-323?q=chrome-contextual

    Ameur Hosni

    We are planning to use `NTP_OMNIBOX_COMPOSEBOX` `SRP_OMNIBOX_COMPOSEBOX`.. Why do you think we should use our own classification? I thought those were intended to be share across platforms.

    Regarding why we return contextual searchbox page classification when attachments exist: the code you linked updates the client, sure, but the input page classification doesn't reflect on the contextual query unless we explicitly set it. And setting it is necessary because we use that page_classification to decide if we should return suggestions for contextual queries in the search_provider.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Christian Xu
    • Nihar Majmudar
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
    Gerrit-Change-Number: 7213565
    Gerrit-PatchSet: 4
    Gerrit-Owner: Ameur Hosni <ameur...@google.com>
    Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
    Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
    Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
    Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
    Gerrit-Attention: Nihar Majmudar <nih...@google.com>
    Gerrit-Attention: Christian Xu <chris...@chromium.org>
    Gerrit-Comment-Date: Tue, 02 Dec 2025 10:37:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Nihar Majmudar <nih...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nihar Majmudar (Gerrit)

    unread,
    Dec 2, 2025, 9:48:10 AM (5 days ago) Dec 2
    to Ameur Hosni, Chromium LUCI CQ, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
    Attention needed from Ameur Hosni and Christian Xu

    Nihar Majmudar added 2 comments

    File components/omnibox/browser/search_provider.cc
    Line 715, Patchset 4 (Latest): StopSuggest();
    ClearAllResults();
    return;
    Nihar Majmudar . unresolved

    Why is this needed? Won't other results not show already if we're going to be returning the verbatim match only?

    Ameur Hosni

    I thought this is needed to prevent this bug : https://g-issues.chromium.org/issues/463999790

    Nihar Majmudar

    Oh, I see, but if an image is added to a typed query, won't this just return the verbatim match? Wouldn't this new verbatim match update clear the previous matches?

    File ios/chrome/browser/composebox/coordinator/composebox_omnibox_client.mm
    Line 165, Patchset 4 (Latest): return metrics::OmniboxEventProto::NTP_COMPOSEBOX;
    Nihar Majmudar . unresolved

    should iOS eventually have its own page classifications? Also why do we need to return the contextual searchbox page classification if there are attachments?

    This gets handled later on for composebox's: https://source.chromium.org/chromium/chromium/src/+/main:components/omnibox/browser/remote_suggestions_service.cc;l=319-323?q=chrome-contextual

    Ameur Hosni

    We are planning to use `NTP_OMNIBOX_COMPOSEBOX` `SRP_OMNIBOX_COMPOSEBOX`.. Why do you think we should use our own classification? I thought those were intended to be share across platforms.

    Regarding why we return contextual searchbox page classification when attachments exist: the code you linked updates the client, sure, but the input page classification doesn't reflect on the contextual query unless we explicitly set it. And setting it is necessary because we use that page_classification to decide if we should return suggestions for contextual queries in the search_provider.

    Nihar Majmudar

    oops you are correct, don't know why i thought each platform had their own.

    Regarding the check in SearchProvider, why don't we check if its a composebox and if there are lens signals available on the input? We don't want to change the page classification because these should all still be getting logged as the composebox.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ameur Hosni
    • Christian Xu
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
    Gerrit-Change-Number: 7213565
    Gerrit-PatchSet: 4
    Gerrit-Owner: Ameur Hosni <ameur...@google.com>
    Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
    Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
    Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
    Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
    Gerrit-Attention: Ameur Hosni <ameur...@google.com>
    Gerrit-Attention: Christian Xu <chris...@chromium.org>
    Gerrit-Comment-Date: Tue, 02 Dec 2025 14:48:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Nihar Majmudar <nih...@google.com>
    Comment-In-Reply-To: Ameur Hosni <ameur...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ameur Hosni (Gerrit)

    unread,
    Dec 2, 2025, 10:25:44 AM (5 days ago) Dec 2
    to Chromium LUCI CQ, Nihar Majmudar, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
    Attention needed from Christian Xu and Nihar Majmudar

    Ameur Hosni voted and added 3 comments

    Votes added by Ameur Hosni

    Auto-Submit+1
    Commit-Queue+1

    3 comments

    File components/omnibox/browser/autocomplete_result.cc
    Line 637, Patchset 4: case OmniboxEventProto::CONTEXTUAL_SEARCHBOX:
    Nihar Majmudar . resolved

    Why not keep this NTP_COMPOSEBOX, comments in `composebox_omnibox_client.mm` still apply, regarding creating a new page classification for iOS

    Ameur Hosni

    We still want to identify if composebox has attachments (see my reply in composebox_omnibox_client.mm).

    Ameur Hosni

    Done

    File components/omnibox/browser/search_provider.cc
    Line 715, Patchset 4: StopSuggest();
    ClearAllResults();
    return;
    Nihar Majmudar . resolved

    Why is this needed? Won't other results not show already if we're going to be returning the verbatim match only?

    Ameur Hosni

    I thought this is needed to prevent this bug : https://g-issues.chromium.org/issues/463999790

    Nihar Majmudar

    Oh, I see, but if an image is added to a typed query, won't this just return the verbatim match? Wouldn't this new verbatim match update clear the previous matches?

    Ameur Hosni

    Confirming this is not related, I can see that we don't run history query for Composebox classification.
    I think it's probably related to the fact that contextual zps for an image request is failing with 500 which probably mess up the suggestions somewhere.

    File ios/chrome/browser/composebox/coordinator/composebox_omnibox_client.mm
    Line 165, Patchset 4: return metrics::OmniboxEventProto::NTP_COMPOSEBOX;
    Nihar Majmudar . resolved

    should iOS eventually have its own page classifications? Also why do we need to return the contextual searchbox page classification if there are attachments?

    This gets handled later on for composebox's: https://source.chromium.org/chromium/chromium/src/+/main:components/omnibox/browser/remote_suggestions_service.cc;l=319-323?q=chrome-contextual

    Ameur Hosni

    We are planning to use `NTP_OMNIBOX_COMPOSEBOX` `SRP_OMNIBOX_COMPOSEBOX`.. Why do you think we should use our own classification? I thought those were intended to be share across platforms.

    Regarding why we return contextual searchbox page classification when attachments exist: the code you linked updates the client, sure, but the input page classification doesn't reflect on the contextual query unless we explicitly set it. And setting it is necessary because we use that page_classification to decide if we should return suggestions for contextual queries in the search_provider.

    Nihar Majmudar

    oops you are correct, don't know why i thought each platform had their own.

    Regarding the check in SearchProvider, why don't we check if its a composebox and if there are lens signals available on the input? We don't want to change the page classification because these should all still be getting logged as the composebox.

    Ameur Hosni

    Got it, that makes sense. Updated thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Christian Xu
    • Nihar Majmudar
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
      Gerrit-Change-Number: 7213565
      Gerrit-PatchSet: 5
      Gerrit-Owner: Ameur Hosni <ameur...@google.com>
      Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
      Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
      Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
      Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
      Gerrit-Attention: Nihar Majmudar <nih...@google.com>
      Gerrit-Attention: Christian Xu <chris...@chromium.org>
      Gerrit-Comment-Date: Tue, 02 Dec 2025 15:25:27 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Nihar Majmudar (Gerrit)

      unread,
      Dec 2, 2025, 11:25:58 AM (5 days ago) Dec 2
      to Ameur Hosni, Chromium LUCI CQ, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
      Attention needed from Ameur Hosni and Christian Xu

      Nihar Majmudar voted and added 2 comments

      Votes added by Nihar Majmudar

      Code-Review+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Nihar Majmudar . resolved

      LGTM

      File components/omnibox/browser/search_provider.cc
      Line 710, Patchset 6 (Latest): if (omnibox::IsComposebox(input_.current_page_classification()) &&
      input_.lens_overlay_suggest_inputs().has_value() &&
      !base::FeatureList::IsEnabled(
      omnibox::kComposeboxAttachmentsTypedState)) {
      return;
      }
      Nihar Majmudar . unresolved

      qq: This won't affect the desktop implementation since we hide the dropdown in this case for now right? But desktop will need to enable this flag if we ever want context typed suggestions?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Ameur Hosni
      • Christian Xu
      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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
        Gerrit-Change-Number: 7213565
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ameur Hosni <ameur...@google.com>
        Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
        Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
        Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
        Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
        Gerrit-Attention: Ameur Hosni <ameur...@google.com>
        Gerrit-Attention: Christian Xu <chris...@chromium.org>
        Gerrit-Comment-Date: Tue, 02 Dec 2025 16:25:50 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Ameur Hosni (Gerrit)

        unread,
        Dec 2, 2025, 11:30:00 AM (5 days ago) Dec 2
        to Nihar Majmudar, Chromium LUCI CQ, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
        Attention needed from Christian Xu and Nihar Majmudar

        Ameur Hosni voted and added 1 comment

        Votes added by Ameur Hosni

        Auto-Submit+1

        1 comment

        File components/omnibox/browser/search_provider.cc
        Line 710, Patchset 6 (Latest): if (omnibox::IsComposebox(input_.current_page_classification()) &&
        input_.lens_overlay_suggest_inputs().has_value() &&
        !base::FeatureList::IsEnabled(
        omnibox::kComposeboxAttachmentsTypedState)) {
        return;
        }
        Nihar Majmudar . unresolved

        qq: This won't affect the desktop implementation since we hide the dropdown in this case for now right? But desktop will need to enable this flag if we ever want context typed suggestions?

        Ameur Hosni

        Yes That's correct. I can guard this with a platform check if you think you want to handle this differently.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Christian Xu
        • Nihar Majmudar
        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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
        Gerrit-Change-Number: 7213565
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ameur Hosni <ameur...@google.com>
        Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
        Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
        Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
        Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
        Gerrit-Attention: Nihar Majmudar <nih...@google.com>
        Gerrit-Attention: Christian Xu <chris...@chromium.org>
        Gerrit-Comment-Date: Tue, 02 Dec 2025 16:29:42 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Nihar Majmudar <nih...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Nihar Majmudar (Gerrit)

        unread,
        Dec 2, 2025, 11:43:44 AM (5 days ago) Dec 2
        to Ameur Hosni, Chromium LUCI CQ, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
        Attention needed from Ameur Hosni and Christian Xu

        Nihar Majmudar added 1 comment

        File components/omnibox/browser/search_provider.cc
        Line 710, Patchset 6 (Latest): if (omnibox::IsComposebox(input_.current_page_classification()) &&
        input_.lens_overlay_suggest_inputs().has_value() &&
        !base::FeatureList::IsEnabled(
        omnibox::kComposeboxAttachmentsTypedState)) {
        return;
        }
        Nihar Majmudar . resolved

        qq: This won't affect the desktop implementation since we hide the dropdown in this case for now right? But desktop will need to enable this flag if we ever want context typed suggestions?

        Ameur Hosni

        Yes That's correct. I can guard this with a platform check if you think you want to handle this differently.

        Nihar Majmudar

        No, I think this is fine, I'll move our code to using this flag later. Thanks!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Ameur Hosni
        • Christian Xu
        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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
          Gerrit-Change-Number: 7213565
          Gerrit-PatchSet: 6
          Gerrit-Owner: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
          Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
          Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
          Gerrit-Attention: Ameur Hosni <ameur...@google.com>
          Gerrit-Attention: Christian Xu <chris...@chromium.org>
          Gerrit-Comment-Date: Tue, 02 Dec 2025 16:43:36 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          open
          diffy

          Ameur Hosni (Gerrit)

          unread,
          Dec 2, 2025, 12:32:20 PM (5 days ago) Dec 2
          to Nihar Majmudar, Chromium LUCI CQ, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
          Attention needed from Christian Xu

          Ameur Hosni voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Christian Xu
          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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
          Gerrit-Change-Number: 7213565
          Gerrit-PatchSet: 6
          Gerrit-Owner: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
          Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
          Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
          Gerrit-Attention: Christian Xu <chris...@chromium.org>
          Gerrit-Comment-Date: Tue, 02 Dec 2025 17:32:01 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Dec 2, 2025, 12:35:00 PM (5 days ago) Dec 2
          to Ameur Hosni, Nihar Majmudar, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org

          Chromium LUCI CQ submitted the change

          Change information

          Commit message:
          [IOS][AIM]Do not show typed suggestions when composebox has attachments

          This CL introduces a new feature to control whether or not to show
          suggestions when attachments are present in the composebox.
          Fixed: 463999790
          Change-Id: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
          Reviewed-by: Nihar Majmudar <nih...@google.com>
          Commit-Queue: Ameur Hosni <ameur...@google.com>
          Auto-Submit: Ameur Hosni <ameur...@google.com>
          Cr-Commit-Position: refs/heads/main@{#1552905}
          Files:
          • M components/omnibox/browser/search_provider.cc
          • M components/omnibox/common/omnibox_features.cc
          • M components/omnibox/common/omnibox_features.h
          Change size: S
          Delta: 3 files changed, 15 insertions(+), 0 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Nihar Majmudar
          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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
          Gerrit-Change-Number: 7213565
          Gerrit-PatchSet: 7
          Gerrit-Owner: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
          open
          diffy
          satisfied_requirement

          Duncan Mercer (Gerrit)

          unread,
          Dec 5, 2025, 6:39:48 PM (2 days ago) Dec 5
          to Ameur Hosni, Chromium LUCI CQ, Nihar Majmudar, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org
          Attention needed from Ameur Hosni

          Duncan Mercer added 1 comment

          File components/omnibox/browser/search_provider.cc
          Line 710, Patchset 7 (Latest): if (omnibox::IsComposebox(input_.current_page_classification()) &&

          input_.lens_overlay_suggest_inputs().has_value() &&
          !base::FeatureList::IsEnabled(
          omnibox::kComposeboxAttachmentsTypedState)) {
          Duncan Mercer . unresolved

          This broke the Lens side panel suggestions on Chrome desktop. Why are we adding a universal flag instead of letting each feature control this behavior?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Ameur Hosni
          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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
          Gerrit-Change-Number: 7213565
          Gerrit-PatchSet: 7
          Gerrit-Owner: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
          Gerrit-CC: Duncan Mercer <mer...@google.com>
          Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
          Gerrit-Attention: Ameur Hosni <ameur...@google.com>
          Gerrit-Comment-Date: Fri, 05 Dec 2025 23:39:39 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          open
          diffy

          Ameur Hosni (Gerrit)

          unread,
          Dec 5, 2025, 7:33:49 PM (2 days ago) Dec 5
          to Chromium LUCI CQ, Duncan Mercer, Nihar Majmudar, Christian Xu, Tomasz Wiszkowski, chromium...@chromium.org, christia...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, jdonnel...@chromium.org, marq+...@chromium.org, omnibox-...@chromium.org

          Ameur Hosni added 1 comment

          File components/omnibox/browser/search_provider.cc
          Line 710, Patchset 7 (Latest): if (omnibox::IsComposebox(input_.current_page_classification()) &&
          input_.lens_overlay_suggest_inputs().has_value() &&
          !base::FeatureList::IsEnabled(
          omnibox::kComposeboxAttachmentsTypedState)) {
          Duncan Mercer . resolved

          This broke the Lens side panel suggestions on Chrome desktop. Why are we adding a universal flag instead of letting each feature control this behavior?

          Ameur Hosni

          Thanks for flagging Duncan, sent a fix here : crrev.com/c/7234492

          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: I060e1bacccf94fffbe6acff405b0b28c0e6b03c1
          Gerrit-Change-Number: 7213565
          Gerrit-PatchSet: 7
          Gerrit-Owner: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Ameur Hosni <ameur...@google.com>
          Gerrit-Reviewer: Christian Xu <chris...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Nihar Majmudar <nih...@google.com>
          Gerrit-CC: Duncan Mercer <mer...@google.com>
          Gerrit-CC: Tomasz Wiszkowski <en...@google.com>
          Gerrit-Comment-Date: Sat, 06 Dec 2025 00:33:31 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Duncan Mercer <mer...@google.com>
          satisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages