extensions: Add tab groups API browser tests to desktop Android [chromium/src : main]

0 views
Skip to first unread message

James Cook (Gerrit)

unread,
Jan 7, 2026, 6:15:07 PM (2 days ago) Jan 7
to Zoraiz Naeem, Achuith Bhandarkar, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Zoraiz Naeem

James Cook voted and added 3 comments

Votes added by James Cook

Commit-Queue+1

3 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
James Cook . resolved

Zoraiz, another one for you. Thanks again.

File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
Line 34, Patchset 2 (Latest):#if BUILDFLAG(ENABLE_EXTENSIONS)
James Cook . unresolved

ENABLE_EXTENSIONS is an extensions convention that means "all platforms except desktop Android for now, but we'll add Android later."

Line 45, Patchset 2 (Latest):static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
James Cook . unresolved

ENABLE_EXTENSIONS_CORE includes desktop Android.

Open in Gerrit

Related details

Attention is currently required from:
  • Zoraiz Naeem
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: I71480ffcd84d03a8331cac8e80330da1ea01639f
Gerrit-Change-Number: 7411396
Gerrit-PatchSet: 2
Gerrit-Owner: James Cook <jame...@chromium.org>
Gerrit-Reviewer: James Cook <jame...@chromium.org>
Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
Gerrit-Attention: Zoraiz Naeem <zorai...@chromium.org>
Gerrit-Comment-Date: Wed, 07 Jan 2026 23:14:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Zoraiz Naeem (Gerrit)

unread,
Jan 7, 2026, 8:23:12 PM (2 days ago) Jan 7
to James Cook, Achuith Bhandarkar, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from James Cook

Zoraiz Naeem added 5 comments

File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
Line 34, Patchset 2 (Latest):#if BUILDFLAG(ENABLE_EXTENSIONS)
James Cook . resolved

ENABLE_EXTENSIONS is an extensions convention that means "all platforms except desktop Android for now, but we'll add Android later."

Zoraiz Naeem

Acknowledged

Line 43, Patchset 2 (Latest):#endif
Zoraiz Naeem . unresolved

please add `// BUILDFLAG(ENABLE_EXTENSIONS)`. My bad but I spent sometime visually to see where it was ending XD

Line 45, Patchset 2 (Latest):static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
James Cook . unresolved

ENABLE_EXTENSIONS_CORE includes desktop Android.

Zoraiz Naeem

Would this check fail? Since it being complied outside of if-def block? Whats the purpose?

Line 56, Patchset 2 (Latest):#if BUILDFLAG(ENABLE_EXTENSIONS)
Zoraiz Naeem . unresolved

Do added this if-def section to later enable it for Android?

Line 143, Patchset 2 (Latest): // don't support tab groups, so tab groups are always supported.
Zoraiz Naeem . unresolved

`apps that have tab strips don't support tab group` -> `apps that have tab strips that don't support tab group` ->

Open in Gerrit

Related details

Attention is currently required from:
  • James Cook
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: I71480ffcd84d03a8331cac8e80330da1ea01639f
Gerrit-Change-Number: 7411396
Gerrit-PatchSet: 2
Gerrit-Owner: James Cook <jame...@chromium.org>
Gerrit-Reviewer: James Cook <jame...@chromium.org>
Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
Gerrit-Attention: James Cook <jame...@chromium.org>
Gerrit-Comment-Date: Thu, 08 Jan 2026 01:23:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: James Cook <jame...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

James Cook (Gerrit)

unread,
Jan 7, 2026, 8:48:16 PM (2 days ago) Jan 7
to Zoraiz Naeem, Achuith Bhandarkar, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Zoraiz Naeem

James Cook added 5 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
James Cook . resolved

Zoraiz, please take another look.

File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
Line 43, Patchset 2:#endif
Zoraiz Naeem . resolved

please add `// BUILDFLAG(ENABLE_EXTENSIONS)`. My bad but I spent sometime visually to see where it was ending XD

James Cook

Done

Line 45, Patchset 2:static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
James Cook . resolved

ENABLE_EXTENSIONS_CORE includes desktop Android.

Zoraiz Naeem

Would this check fail? Since it being complied outside of if-def block? Whats the purpose?

James Cook

This is asserting that the whole extension system is enabled, which is true on Win/Mac/Linux/ChromeOS/desktop Android. We use it as a clue that a file has been ported to desktop Android. Otherwise it's not obvious (when opening the file, or looking at it in code search). We used to have to dig through BUILD.gn files to tell which files have been converted.

Line 56, Patchset 2:#if BUILDFLAG(ENABLE_EXTENSIONS)
Zoraiz Naeem . resolved

Do added this if-def section to later enable it for Android?

James Cook

Yes, this `#if BUILDFLAG(ENABLE_EXTENSIONS)` directive is how we indicate that something doesn't work yet on desktop Android, but we want to port it in the future. It's a convention we use extensively throughout the extensions codebase.

We don't use `#if !BUIIDFLAG(IS_ANDROID)` because we use that to mean "this is a platform difference on Android that will stay this way permanently".

Line 143, Patchset 2: // don't support tab groups, so tab groups are always supported.
Zoraiz Naeem . resolved

`apps that have tab strips don't support tab group` -> `apps that have tab strips that don't support tab group` ->

James Cook

Whoops! Done.

Open in Gerrit

Related details

Attention is currently required from:
  • Zoraiz Naeem
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: I71480ffcd84d03a8331cac8e80330da1ea01639f
    Gerrit-Change-Number: 7411396
    Gerrit-PatchSet: 3
    Gerrit-Owner: James Cook <jame...@chromium.org>
    Gerrit-Reviewer: James Cook <jame...@chromium.org>
    Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
    Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
    Gerrit-Attention: Zoraiz Naeem <zorai...@chromium.org>
    Gerrit-Comment-Date: Thu, 08 Jan 2026 01:48:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: James Cook <jame...@chromium.org>
    Comment-In-Reply-To: Zoraiz Naeem <zorai...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Zoraiz Naeem (Gerrit)

    unread,
    Jan 7, 2026, 8:54:12 PM (2 days ago) Jan 7
    to James Cook, Achuith Bhandarkar, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from James Cook

    Zoraiz Naeem voted and added 2 comments

    Votes added by Zoraiz Naeem

    Code-Review+1

    2 comments

    Patchset-level comments
    Zoraiz Naeem . resolved

    lgtm & nit

    File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
    Line 346, Patchset 3 (Latest): ASSERT_TRUE(group.has_value());
    Zoraiz Naeem . unresolved

    nit: ASSERT_TRUE(group);

    Open in Gerrit

    Related details

    Attention is currently required from:
    • James Cook
    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: I71480ffcd84d03a8331cac8e80330da1ea01639f
      Gerrit-Change-Number: 7411396
      Gerrit-PatchSet: 3
      Gerrit-Owner: James Cook <jame...@chromium.org>
      Gerrit-Reviewer: James Cook <jame...@chromium.org>
      Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
      Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
      Gerrit-Attention: James Cook <jame...@chromium.org>
      Gerrit-Comment-Date: Thu, 08 Jan 2026 01:54:01 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      James Cook (Gerrit)

      unread,
      Jan 7, 2026, 9:12:22 PM (2 days ago) Jan 7
      to Zoraiz Naeem, Achuith Bhandarkar, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

      James Cook added 2 comments

      Patchset-level comments
      James Cook . resolved

      Thanks for the review!

      File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
      Line 346, Patchset 3 (Latest): ASSERT_TRUE(group.has_value());
      Zoraiz Naeem . resolved

      nit: ASSERT_TRUE(group);

      James Cook
      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: I71480ffcd84d03a8331cac8e80330da1ea01639f
        Gerrit-Change-Number: 7411396
        Gerrit-PatchSet: 3
        Gerrit-Owner: James Cook <jame...@chromium.org>
        Gerrit-Reviewer: James Cook <jame...@chromium.org>
        Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
        Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
        Gerrit-Comment-Date: Thu, 08 Jan 2026 02:12:10 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Zoraiz Naeem <zorai...@chromium.org>
        satisfied_requirement
        open
        diffy

        James Cook (Gerrit)

        unread,
        Jan 8, 2026, 2:20:36 PM (20 hours ago) Jan 8
        to Zoraiz Naeem, Achuith Bhandarkar, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

        James Cook voted Commit-Queue+2

        Commit-Queue+2
        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: I71480ffcd84d03a8331cac8e80330da1ea01639f
        Gerrit-Change-Number: 7411396
        Gerrit-PatchSet: 3
        Gerrit-Owner: James Cook <jame...@chromium.org>
        Gerrit-Reviewer: James Cook <jame...@chromium.org>
        Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
        Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
        Gerrit-Comment-Date: Thu, 08 Jan 2026 19:20:21 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Jan 8, 2026, 2:23:43 PM (20 hours ago) Jan 8
        to James Cook, Zoraiz Naeem, Achuith Bhandarkar, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        extensions: Add tab groups API browser tests to desktop Android

        Now that we've converted some of the unit tests that used Browser and
        BrowserWindow to browser tests, we can start enabling them on Android.

        Add the test to the build. Enable tests for the get() API, which is
        the only one we support on Android right now. Rewrite the test suite
        to use cross-platform tab list and tab concepts, so it runs on
        Android.

        Comment out the remaining tests with BUILDFLAG(ENABLE_EXTENSIONS),
        which is our convention for extensions code to be ported to Android
        later.
        Bug: 405219902
        Change-Id: I71480ffcd84d03a8331cac8e80330da1ea01639f
        Reviewed-by: Zoraiz Naeem <zorai...@chromium.org>
        Commit-Queue: James Cook <jame...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1566454}
        Files:
        • M chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
        • M chrome/test/BUILD.gn
        Change size: M
        Delta: 2 files changed, 68 insertions(+), 28 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Zoraiz Naeem
        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: I71480ffcd84d03a8331cac8e80330da1ea01639f
        Gerrit-Change-Number: 7411396
        Gerrit-PatchSet: 4
        Gerrit-Owner: James Cook <jame...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: James Cook <jame...@chromium.org>
        Gerrit-Reviewer: Zoraiz Naeem <zorai...@chromium.org>
        Gerrit-CC: Achuith Bhandarkar <ach...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages