[Vertical Tabs] Add the new badge to empty space context menu entry point in tablets [chromium/src : main]

0 views
Skip to first unread message

Eleanor Lee (Gerrit)

unread,
Jul 30, 2026, 3:33:11 AM (3 days ago) Jul 30
to chromium...@chromium.org

Eleanor Lee added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Eleanor Lee . unresolved

Will add unit tests after the first round of reviews.

Open in Gerrit

Related details

Attention set is empty
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: I0fb79629656fedfbbaa494e0f816559656229537
Gerrit-Change-Number: 8173983
Gerrit-PatchSet: 3
Gerrit-Owner: Eleanor Lee <elean...@google.com>
Gerrit-Comment-Date: Thu, 30 Jul 2026 07:32:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Gazal Agarwal (Gerrit)

unread,
Jul 30, 2026, 12:35:37 PM (3 days ago) Jul 30
to Eleanor Lee, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Eleanor Lee

Gazal Agarwal added 5 comments

File chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/TabStripContextMenuCoordinator.java
Line 277, Patchset 3 (Parent): .withTitleRes(layoutTitleRes)
Gazal Agarwal . unresolved

This was setting the TITLE_ID property, and not the TITLE. Can you double check that won't cause any issues. You may need to update tests.

Line 321, Patchset 3 (Latest): item.model.set(ListMenuItemProperties.TITLE, title);
Gazal Agarwal . unresolved

We can add a `withTitle(CharSequence)` method to ListItemBuilder.

File chrome/browser/preferences/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceKeys.java
Line 1120, Patchset 3 (Latest): /** Stores whether the user has clicked the "Show tabs vertically" menu item. */
public static final String VERTICAL_TABS_LAYOUT_TOGGLE_CLICKED =
"Chrome.VerticalTabs.LayoutToggleClicked";
Gazal Agarwal . unresolved

Could we just set the value of `VERTICAL_TABS_LAYOUT_TOGGLE_VIEW_COUNT` to max impression count, when user clicks on the menu item, and get rid of this?

File chrome/browser/ui/vertical_tabs/android/java/src/org/chromium/chrome/browser/ui/vertical_tabs/VerticalTabUtils.java
Line 190, Patchset 3 (Latest): public static boolean shouldShowNewBadgeForVerticalTabs(Context context) {
Gazal Agarwal . unresolved

nit: move this below `isGroupHeaderDragEnabled` to group with other public methods.

Line 196, Patchset 3 (Latest): final SharedPreferencesManager sharedPreferences = ChromeSharedPreferences.getInstance();
Gazal Agarwal . unresolved

Nit: The final modifier on local variable sharedPreferences is unnecessary.

Open in Gerrit

Related details

Attention is currently required from:
  • Eleanor Lee
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: I0fb79629656fedfbbaa494e0f816559656229537
Gerrit-Change-Number: 8173983
Gerrit-PatchSet: 3
Gerrit-Owner: Eleanor Lee <elean...@google.com>
Gerrit-Reviewer: Eleanor Lee <elean...@google.com>
Gerrit-Reviewer: Gazal Agarwal <aga...@google.com>
Gerrit-Attention: Eleanor Lee <elean...@google.com>
Gerrit-Comment-Date: Thu, 30 Jul 2026 16:35:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Eleanor Lee (Gerrit)

unread,
Aug 1, 2026, 11:46:33 PM (8 hours ago) Aug 1
to Chromium LUCI CQ, Gazal Agarwal, chromium...@chromium.org
Attention needed from Gazal Agarwal

Eleanor Lee added 7 comments

Patchset-level comments
File-level comment, Patchset 3:
Eleanor Lee . resolved

Will add unit tests after the first round of reviews.

Eleanor Lee

Done

File-level comment, Patchset 5 (Latest):
Eleanor Lee . unresolved

Are we not allowed to use `DeviceInfo.isDesktop()` ?

File chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/TabStripContextMenuCoordinator.java
Line 277, Patchset 3 (Parent): .withTitleRes(layoutTitleRes)
Gazal Agarwal . resolved

This was setting the TITLE_ID property, and not the TITLE. Can you double check that won't cause any issues. You may need to update tests.

Eleanor Lee

Done

Line 321, Patchset 3: item.model.set(ListMenuItemProperties.TITLE, title);
Gazal Agarwal . resolved

We can add a `withTitle(CharSequence)` method to ListItemBuilder.

Eleanor Lee

Done

File chrome/browser/preferences/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceKeys.java
Line 1120, Patchset 3: /** Stores whether the user has clicked the "Show tabs vertically" menu item. */

public static final String VERTICAL_TABS_LAYOUT_TOGGLE_CLICKED =
"Chrome.VerticalTabs.LayoutToggleClicked";
Gazal Agarwal . resolved

Could we just set the value of `VERTICAL_TABS_LAYOUT_TOGGLE_VIEW_COUNT` to max impression count, when user clicks on the menu item, and get rid of this?

Eleanor Lee

Done

File chrome/browser/ui/vertical_tabs/android/java/src/org/chromium/chrome/browser/ui/vertical_tabs/VerticalTabUtils.java
Line 190, Patchset 3: public static boolean shouldShowNewBadgeForVerticalTabs(Context context) {
Gazal Agarwal . resolved

nit: move this below `isGroupHeaderDragEnabled` to group with other public methods.

Eleanor Lee

Done

Line 196, Patchset 3: final SharedPreferencesManager sharedPreferences = ChromeSharedPreferences.getInstance();
Gazal Agarwal . resolved

Nit: The final modifier on local variable sharedPreferences is unnecessary.

Eleanor Lee

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Gazal Agarwal
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: I0fb79629656fedfbbaa494e0f816559656229537
Gerrit-Change-Number: 8173983
Gerrit-PatchSet: 5
Gerrit-Owner: Eleanor Lee <elean...@google.com>
Gerrit-Reviewer: Eleanor Lee <elean...@google.com>
Gerrit-Reviewer: Gazal Agarwal <aga...@google.com>
Gerrit-Attention: Gazal Agarwal <aga...@google.com>
Gerrit-Comment-Date: Sun, 02 Aug 2026 03:46:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Eleanor Lee <elean...@google.com>
Comment-In-Reply-To: Gazal Agarwal <aga...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages