Fix Clank @tabs tab-switch button and BaseSuggestionView crash [chromium/src : main]

0 views
Skip to first unread message

Keigo Oka (Gerrit)

unread,
May 28, 2026, 11:29:16 PM (3 days ago) May 28
to ben chin, Patrick Noland, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
Attention needed from Patrick Noland, ben chin and manuk hovanesian

Keigo Oka added 1 comment

Commit Message
Line 9, Patchset 2 (Latest):- Suppress "Switch to Tab" button exclusively in @tabs site search context by removing the phone-only `!is_desktop()` restriction.
Keigo Oka . unresolved

Can we create a new CL for this if this is orthogonal to the crash fix?

Open in Gerrit

Related details

Attention is currently required from:
  • Patrick Noland
  • ben chin
  • manuk hovanesian
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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
Gerrit-Change-Number: 7884956
Gerrit-PatchSet: 2
Gerrit-Owner: ben chin <lu...@chromium.org>
Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
Gerrit-Reviewer: ben chin <lu...@chromium.org>
Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
Gerrit-CC: Keigo Oka <o...@chromium.org>
Gerrit-Attention: ben chin <lu...@chromium.org>
Gerrit-Attention: manuk hovanesian <man...@chromium.org>
Gerrit-Attention: Patrick Noland <pno...@chromium.org>
Gerrit-Comment-Date: Fri, 29 May 2026 03:28:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

ben chin (Gerrit)

unread,
May 28, 2026, 11:53:09 PM (3 days ago) May 28
to Keigo Oka, Patrick Noland, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
Attention needed from Keigo Oka, Patrick Noland and manuk hovanesian

ben chin voted and added 1 comment

Votes added by ben chin

Commit-Queue+1

1 comment

Commit Message
Line 9, Patchset 2:- Suppress "Switch to Tab" button exclusively in @tabs site search context by removing the phone-only `!is_desktop()` restriction.
Keigo Oka . resolved

Can we create a new CL for this if this is orthogonal to the crash fix?

ben chin

sure thing!

Open in Gerrit

Related details

Attention is currently required from:
  • Keigo Oka
  • Patrick Noland
  • manuk hovanesian
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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
    Gerrit-Change-Number: 7884956
    Gerrit-PatchSet: 4
    Gerrit-Owner: ben chin <lu...@chromium.org>
    Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
    Gerrit-Reviewer: ben chin <lu...@chromium.org>
    Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
    Gerrit-CC: Keigo Oka <o...@chromium.org>
    Gerrit-Attention: Keigo Oka <o...@chromium.org>
    Gerrit-Attention: manuk hovanesian <man...@chromium.org>
    Gerrit-Attention: Patrick Noland <pno...@chromium.org>
    Gerrit-Comment-Date: Fri, 29 May 2026 03:52:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Keigo Oka <o...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Keigo Oka (Gerrit)

    unread,
    May 29, 2026, 12:32:10 AM (3 days ago) May 29
    to ben chin, Patrick Noland, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
    Attention needed from Patrick Noland, ben chin and manuk hovanesian

    Keigo Oka added 1 comment

    File components/omnibox/browser/autocomplete_result.cc
    Line 1099, Patchset 4 (Latest): if (!match.from_keyword ||
    match.type != AutocompleteMatchType::OPEN_TAB) {
    Keigo Oka . unresolved

    It looks a little weird to me because the condition for this `if` is the same as the condition for the `else if` below. Why should it be structured like so?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Patrick Noland
    • ben chin
    • manuk hovanesian
    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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
      Gerrit-Change-Number: 7884956
      Gerrit-PatchSet: 4
      Gerrit-Owner: ben chin <lu...@chromium.org>
      Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
      Gerrit-Reviewer: ben chin <lu...@chromium.org>
      Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
      Gerrit-CC: Keigo Oka <o...@chromium.org>
      Gerrit-Attention: ben chin <lu...@chromium.org>
      Gerrit-Attention: manuk hovanesian <man...@chromium.org>
      Gerrit-Attention: Patrick Noland <pno...@chromium.org>
      Gerrit-Comment-Date: Fri, 29 May 2026 04:31:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      ben chin (Gerrit)

      unread,
      May 29, 2026, 1:38:31 AM (3 days ago) May 29
      to Keigo Oka, Patrick Noland, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
      Attention needed from Keigo Oka, Patrick Noland and manuk hovanesian

      ben chin voted and added 1 comment

      Votes added by ben chin

      Commit-Queue+1

      1 comment

      File components/omnibox/browser/autocomplete_result.cc
      Line 1099, Patchset 4: if (!match.from_keyword ||
      match.type != AutocompleteMatchType::OPEN_TAB) {
      Keigo Oka . resolved

      It looks a little weird to me because the condition for this `if` is the same as the condition for the `else if` below. Why should it be structured like so?

      ben chin

      Thanks! I eliminates the duplication logic

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Keigo Oka
      • Patrick Noland
      • manuk hovanesian
      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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
        Gerrit-Change-Number: 7884956
        Gerrit-PatchSet: 5
        Gerrit-Owner: ben chin <lu...@chromium.org>
        Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
        Gerrit-Reviewer: ben chin <lu...@chromium.org>
        Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
        Gerrit-CC: Keigo Oka <o...@chromium.org>
        Gerrit-Attention: Keigo Oka <o...@chromium.org>
        Gerrit-Attention: manuk hovanesian <man...@chromium.org>
        Gerrit-Attention: Patrick Noland <pno...@chromium.org>
        Gerrit-Comment-Date: Fri, 29 May 2026 05:38:10 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Patrick Noland (Gerrit)

        unread,
        May 29, 2026, 4:53:33 PM (2 days ago) May 29
        to ben chin, Keigo Oka, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
        Attention needed from Keigo Oka, ben chin and manuk hovanesian

        Patrick Noland added 1 comment

        File components/omnibox/browser/autocomplete_result.cc
        Line 1099, Patchset 5 (Latest): if constexpr (is_android) {
        #if BUILDFLAG(IS_ANDROID)
        Patrick Noland . unresolved
        Do we need both the if constexpr(is_android) and the BUILDFLAG check? Can we put the      
        ```

        if (!match.from_keyword ||
        match.type != AutocompleteMatchType::OPEN_TAB) {
        ```

        as part of the if constexpr (is_android) to reduce nesting/make this easier to follow?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Keigo Oka
        • ben chin
        • manuk hovanesian
        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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
          Gerrit-Change-Number: 7884956
          Gerrit-PatchSet: 5
          Gerrit-Owner: ben chin <lu...@chromium.org>
          Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
          Gerrit-Reviewer: ben chin <lu...@chromium.org>
          Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
          Gerrit-CC: Keigo Oka <o...@chromium.org>
          Gerrit-Attention: Keigo Oka <o...@chromium.org>
          Gerrit-Attention: ben chin <lu...@chromium.org>
          Gerrit-Attention: manuk hovanesian <man...@chromium.org>
          Gerrit-Comment-Date: Fri, 29 May 2026 20:53:21 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          ben chin (Gerrit)

          unread,
          May 31, 2026, 10:30:29 PM (2 hours ago) May 31
          to Keigo Oka, Patrick Noland, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
          Attention needed from Keigo Oka, Patrick Noland and manuk hovanesian

          ben chin voted and added 1 comment

          Votes added by ben chin

          Commit-Queue+1

          1 comment

          File components/omnibox/browser/autocomplete_result.cc
          Line 1099, Patchset 5: if constexpr (is_android) {
          #if BUILDFLAG(IS_ANDROID)
          Patrick Noland . resolved
          Do we need both the if constexpr(is_android) and the BUILDFLAG check? Can we put the      
          ```
          if (!match.from_keyword ||
          match.type != AutocompleteMatchType::OPEN_TAB) {
          ```

          as part of the if constexpr (is_android) to reduce nesting/make this easier to follow?

          ben chin

          thanks! the `BUILDFLAG(IS_ANDROID)` is redundant. Regarding putting the keyword/type check inside if constexpr : The @tabs keyword mode suppression of the action button is needed for both Android and Desktop (so that we don't show the redundant "Switch to Tab" button on either platform in keyword mode).

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Keigo Oka
          • Patrick Noland
          • manuk hovanesian
          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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
            Gerrit-Change-Number: 7884956
            Gerrit-PatchSet: 6
            Gerrit-Owner: ben chin <lu...@chromium.org>
            Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
            Gerrit-Reviewer: ben chin <lu...@chromium.org>
            Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
            Gerrit-CC: Keigo Oka <o...@chromium.org>
            Gerrit-Attention: Keigo Oka <o...@chromium.org>
            Gerrit-Attention: manuk hovanesian <man...@chromium.org>
            Gerrit-Attention: Patrick Noland <pno...@chromium.org>
            Gerrit-Comment-Date: Mon, 01 Jun 2026 02:30:06 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Patrick Noland <pno...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            ben chin (Gerrit)

            unread,
            May 31, 2026, 10:45:31 PM (2 hours ago) May 31
            to Keigo Oka, Patrick Noland, manuk hovanesian, Chromium LUCI CQ, chromium...@chromium.org, christia...@chromium.org, ender...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org
            Attention needed from Keigo Oka, Patrick Noland and manuk hovanesian

            ben chin voted and added 1 comment

            Votes added by ben chin

            Commit-Queue+1

            1 comment

            File components/omnibox/browser/autocomplete_result.cc
            Line 1099, Patchset 5: if constexpr (is_android) {
            #if BUILDFLAG(IS_ANDROID)
            Patrick Noland . resolved
            Do we need both the if constexpr(is_android) and the BUILDFLAG check? Can we put the      
            ```
            if (!match.from_keyword ||
            match.type != AutocompleteMatchType::OPEN_TAB) {
            ```

            as part of the if constexpr (is_android) to reduce nesting/make this easier to follow?

            ben chin

            thanks! the `BUILDFLAG(IS_ANDROID)` is redundant. Regarding putting the keyword/type check inside if constexpr : The @tabs keyword mode suppression of the action button is needed for both Android and Desktop (so that we don't show the redundant "Switch to Tab" button on either platform in keyword mode).

            ben chin

            Ah ... looks like even though if constexpr (is_android) discards the execution branch on desktop, the compiler still type-checks the discarded branch on non-Android platforms so we still need it

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Keigo Oka
            • Patrick Noland
            • manuk hovanesian
            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: Iaa4b5a6cc49baa7f6f3f7325dd6a73a583badf04
            Gerrit-Change-Number: 7884956
            Gerrit-PatchSet: 7
            Gerrit-Owner: ben chin <lu...@chromium.org>
            Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
            Gerrit-Reviewer: ben chin <lu...@chromium.org>
            Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
            Gerrit-CC: Keigo Oka <o...@chromium.org>
            Gerrit-Attention: Keigo Oka <o...@chromium.org>
            Gerrit-Attention: manuk hovanesian <man...@chromium.org>
            Gerrit-Attention: Patrick Noland <pno...@chromium.org>
            Gerrit-Comment-Date: Mon, 01 Jun 2026 02:45:08 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: ben chin <lu...@chromium.org>
            Comment-In-Reply-To: Patrick Noland <pno...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages