extensions: Enable chrome.tabGrousp.query() on desktop Android [chromium/src : main]

0 views
Skip to first unread message

James Cook (Gerrit)

unread,
Jan 8, 2026, 3:58:52 PM (19 hours ago) Jan 8
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 5 comments

Votes added by James Cook

Commit-Queue+1

5 comments

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

Zoraiz, please take a look!

File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
Line 58, Patchset 3 (Latest):using tab_groups::TabGroupId;
James Cook . unresolved

I did this because `std::optional<tab_groups::TabGroupId>` is long and was causing line wrapping in some cases.

Line 215, Patchset 3 (Latest): std::optional<TabGroupId> group1 = CreateTabGroup({0});
James Cook . unresolved

The test is unchanged, it just uses cross-platform interfaces (TabListInterface) and helper methods (CreateTabGroup).

Line 253, Patchset 3 (Latest): std::optional<TabGroupId> group1 = CreateTabGroup({0});
James Cook . unresolved

ditto, the test is unchanged, just refactored

Line 461, Patchset 3 (Latest): TabGroupId group = tab_strip_model->AddToNewGroup({0, 1, 2});
James Cook . unresolved

I'll convert these to the CreateTabGroup() helper method when I enable the tests on Android. For now they are Win/Mac/Linux/ChromeOS only.

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: I34407a06029704a1429177dc5f9e6611c1d9bc54
Gerrit-Change-Number: 7417242
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 20:58:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Zoraiz Naeem (Gerrit)

unread,
Jan 8, 2026, 4:28:21 PM (18 hours ago) Jan 8
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 4 comments

Votes added by Zoraiz Naeem

Code-Review+1

4 comments

Patchset-level comments
Zoraiz Naeem . resolved

lgtm!

File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
Line 58, Patchset 3 (Latest):using tab_groups::TabGroupId;
James Cook . resolved

I did this because `std::optional<tab_groups::TabGroupId>` is long and was causing line wrapping in some cases.

Zoraiz Naeem

Acknowledged

Line 253, Patchset 3 (Latest): std::optional<TabGroupId> group1 = CreateTabGroup({0});
James Cook . resolved

ditto, the test is unchanged, just refactored

Zoraiz Naeem

Acknowledged

Line 461, Patchset 3 (Latest): TabGroupId group = tab_strip_model->AddToNewGroup({0, 1, 2});
James Cook . unresolved

I'll convert these to the CreateTabGroup() helper method when I enable the tests on Android. For now they are Win/Mac/Linux/ChromeOS only.

Zoraiz Naeem

Maybe add a TODO if it will be while till you get to it?

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: I34407a06029704a1429177dc5f9e6611c1d9bc54
    Gerrit-Change-Number: 7417242
    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 21:28:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: James Cook <jame...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    James Cook (Gerrit)

    unread,
    Jan 8, 2026, 5:23:00 PM (17 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 and added 3 comments

    Votes added by James Cook

    Commit-Queue+2

    3 comments

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

    Thanks for the review!

    File chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
    Line 215, Patchset 3: std::optional<TabGroupId> group1 = CreateTabGroup({0});
    James Cook . resolved

    The test is unchanged, it just uses cross-platform interfaces (TabListInterface) and helper methods (CreateTabGroup).

    James Cook

    Acknowledged

    Line 461, Patchset 3: TabGroupId group = tab_strip_model->AddToNewGroup({0, 1, 2});
    James Cook . resolved

    I'll convert these to the CreateTabGroup() helper method when I enable the tests on Android. For now they are Win/Mac/Linux/ChromeOS only.

    Zoraiz Naeem

    Maybe add a TODO if it will be while till you get to it?

    James Cook

    Done

    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: I34407a06029704a1429177dc5f9e6611c1d9bc54
      Gerrit-Change-Number: 7417242
      Gerrit-PatchSet: 4
      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 22:22:47 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: James Cook <jame...@chromium.org>
      Comment-In-Reply-To: Zoraiz Naeem <zorai...@chromium.org>
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jan 8, 2026, 6:33:15 PM (16 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 with unreviewed changes

      Unreviewed changes

      3 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
      Insertions: 1, Deletions: 0.

      @@ -458,6 +458,7 @@
      TabGroupModel* tab_group_model = tab_strip_model->group_model();

      // Create a group.
      + // TODO(crbug.com/405219902): Convert call to CreateTabGroup() here and below.

      TabGroupId group = tab_strip_model->AddToNewGroup({0, 1, 2});
         tab_groups::TabGroupVisualData visual_data(
      u"Initial title", tab_groups::TabGroupColorId::kBlue);
      ```

      Change information

      Commit message:
      extensions: Enable chrome.tabGrousp.query() on desktop Android

      Enable the API method implementation on Android and enable the
      corresponding browser tests.
      Bug: 405219902
      Change-Id: I34407a06029704a1429177dc5f9e6611c1d9bc54
      Reviewed-by: Zoraiz Naeem <zorai...@chromium.org>
      Commit-Queue: James Cook <jame...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1566595}
      Files:
      • M chrome/browser/extensions/api/tab_groups/tab_groups_api.cc
      • M chrome/browser/extensions/api/tab_groups/tab_groups_api_browsertest.cc
      Change size: M
      Delta: 2 files changed, 82 insertions(+), 54 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: I34407a06029704a1429177dc5f9e6611c1d9bc54
      Gerrit-Change-Number: 7417242
      Gerrit-PatchSet: 5
      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