[bedrock] Migrate BrowserList begin/end Part 12. [chromium/src : main]

0 views
Skip to first unread message

Qikai Zhong (Gerrit)

unread,
Oct 27, 2025, 11:53:38 PM (2 days ago) Oct 27
to Tom Lukaszewicz, Alex Carutasu, Kevin DiClemente, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, croissant-...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org
Attention needed from Alex Carutasu and Tom Lukaszewicz

Qikai Zhong added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Qikai Zhong . resolved

Hi, this CL is ready, please help review, thanks~

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Carutasu
  • Tom Lukaszewicz
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: Ie7097bc1236bb67a7ed6b237a14fa4d588d17f3d
Gerrit-Change-Number: 7089811
Gerrit-PatchSet: 3
Gerrit-Owner: Qikai Zhong <qikai...@microsoft.com>
Gerrit-Reviewer: Alex Carutasu <alca...@microsoft.com>
Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Kevin DiClemente <ked...@microsoft.com>
Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Attention: Alex Carutasu <alca...@microsoft.com>
Gerrit-Comment-Date: Tue, 28 Oct 2025 03:53:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Qikai Zhong (Gerrit)

unread,
Oct 28, 2025, 7:26:44 AM (yesterday) Oct 28
to Tom Lukaszewicz, Alex Carutasu, Kevin DiClemente, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, croissant-...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org
Attention needed from Alex Carutasu and Tom Lukaszewicz

Qikai Zhong added 1 comment

File chrome/browser/ash/browser_delegate/browser_controller.h
Line 46, Patchset 4 (Parent): // Note: When invoking BrowserController::ForEachBrowser in
// OnBrowserCreated, the new browser will show up for
// kAscendingCreationTime but not yet for kAscendingActivationTime.
// TODO(crbug.com/369688254): Revisit this behavior.
Qikai Zhong . unresolved

Do not have permission to check this bug. But I think it should gone after https://chromium-review.googlesource.com/c/chromium/src/+/7080234

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Carutasu
  • Tom Lukaszewicz
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: Ie7097bc1236bb67a7ed6b237a14fa4d588d17f3d
    Gerrit-Change-Number: 7089811
    Gerrit-PatchSet: 4
    Gerrit-Owner: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Kevin DiClemente <ked...@microsoft.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Attention: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Comment-Date: Tue, 28 Oct 2025 11:26:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alex Carutasu (Gerrit)

    unread,
    Oct 28, 2025, 9:07:20 PM (13 hours ago) Oct 28
    to Qikai Zhong, Tom Lukaszewicz, Kevin DiClemente, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, croissant-...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org
    Attention needed from Qikai Zhong and Tom Lukaszewicz

    Alex Carutasu added 3 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Alex Carutasu . resolved

    Thanks for the changes, left some comments.

    File chrome/browser/ash/app_list/app_list_client_impl.cc
    Line 870, Patchset 4 (Parent): ash::BrowserController::BrowserOrder::kAscendingCreationTime,
    Alex Carutasu . unresolved

    Curious: how do we know that this ordering isn't an important assumption in any of the touched components?

    File chrome/browser/ash/browser_delegate/browser_controller_impl.cc
    Line 113, Patchset 4 (Latest): if (callback(*GetDelegate(browser)) == kBreakIteration) {
    return false; // stop iterating
    }
    return true; // continue iterating
    Alex Carutasu . unresolved

    nit, a bit shorter:


    ```suggestion
    return callback(*GetDelegate(browser)) != kBreakIteration;
    ```
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Qikai Zhong
    • Tom Lukaszewicz
    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: Ie7097bc1236bb67a7ed6b237a14fa4d588d17f3d
    Gerrit-Change-Number: 7089811
    Gerrit-PatchSet: 4
    Gerrit-Owner: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Kevin DiClemente <ked...@microsoft.com>
    Gerrit-Attention: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Oct 2025 01:07:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Qikai Zhong (Gerrit)

    unread,
    8:45 AM (2 hours ago) 8:45 AM
    to Tom Lukaszewicz, Alex Carutasu, Kevin DiClemente, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, croissant-...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org
    Attention needed from Alex Carutasu and Tom Lukaszewicz

    Qikai Zhong added 2 comments

    File chrome/browser/ash/app_list/app_list_client_impl.cc
    Line 870, Patchset 4 (Parent): ash::BrowserController::BrowserOrder::kAscendingCreationTime,
    Alex Carutasu . unresolved

    Curious: how do we know that this ordering isn't an important assumption in any of the touched components?

    Qikai Zhong

    Our current plan is to remove the dependency on the browser creation order. Therefore, I'll first try proposing a CL and running a CQ dry run to see the results. As far as I know, this CL will definitely change some shelf behaviors, so this CL will definitely need owner review.

    File chrome/browser/ash/browser_delegate/browser_controller_impl.cc
    Line 113, Patchset 4: if (callback(*GetDelegate(browser)) == kBreakIteration) {

    return false; // stop iterating
    }
    return true; // continue iterating
    Alex Carutasu . resolved

    nit, a bit shorter:


    ```suggestion
    return callback(*GetDelegate(browser)) != kBreakIteration;
    ```
    Qikai Zhong

    Marked as resolved.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Carutasu
    • Tom Lukaszewicz
    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: Ie7097bc1236bb67a7ed6b237a14fa4d588d17f3d
    Gerrit-Change-Number: 7089811
    Gerrit-PatchSet: 4
    Gerrit-Owner: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Kevin DiClemente <ked...@microsoft.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Attention: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Comment-Date: Wed, 29 Oct 2025 12:44:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Carutasu <alca...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Tom Lukaszewicz (Gerrit)

    unread,
    9:28 AM (1 hour ago) 9:28 AM
    to Qikai Zhong, Yury Khmel, Alex Carutasu, Kevin DiClemente, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, croissant-...@chromium.org, extension...@chromium.org, feature-me...@chromium.org, oshima...@chromium.org
    Attention needed from Alex Carutasu, Qikai Zhong and Yury Khmel

    Tom Lukaszewicz voted and added 3 comments

    Votes added by Tom Lukaszewicz

    Code-Review+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Tom Lukaszewicz . resolved

    Yury could you ptal for ash shelf?

    File chrome/browser/ash/app_list/app_list_client_impl.cc
    Line 870, Patchset 4 (Parent): ash::BrowserController::BrowserOrder::kAscendingCreationTime,
    Alex Carutasu . unresolved

    Curious: how do we know that this ordering isn't an important assumption in any of the touched components?

    Tom Lukaszewicz

    Qikai is right and we shouldn't be exposing browser ordering directly to clients.

    It looks like the shelf context menu is the only client that is specifically interested in this.

    Looking over the expectations it's not clear that ordering is strictly important - the comments explicitly mention testing for the presence of the browser (not its position), and the positional assertions may just have just been a convenient way to test for this.

    @kh...@chromium.org do you happen to know if creation order is important on the ash shelf context menu?

    File chrome/browser/ash/browser_delegate/browser_controller.h
    Line 46, Patchset 4 (Parent): // Note: When invoking BrowserController::ForEachBrowser in
    // OnBrowserCreated, the new browser will show up for
    // kAscendingCreationTime but not yet for kAscendingActivationTime.
    // TODO(crbug.com/369688254): Revisit this behavior.
    Qikai Zhong . resolved

    Do not have permission to check this bug. But I think it should gone after https://chromium-review.googlesource.com/c/chromium/src/+/7080234

    Tom Lukaszewicz

    Yep! The issue the comment mentions should have been resolved by your CL (the bug itself tracks a more general issue so we can leave that open).

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Carutasu
    • Qikai Zhong
    • Yury Khmel
    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: Ie7097bc1236bb67a7ed6b237a14fa4d588d17f3d
    Gerrit-Change-Number: 7089811
    Gerrit-PatchSet: 5
    Gerrit-Owner: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Yury Khmel <kh...@chromium.org>
    Gerrit-CC: Kevin DiClemente <ked...@microsoft.com>
    Gerrit-Attention: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Attention: Yury Khmel <kh...@chromium.org>
    Gerrit-Attention: Alex Carutasu <alca...@microsoft.com>
    Gerrit-Comment-Date: Wed, 29 Oct 2025 13:27:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Qikai Zhong <qikai...@microsoft.com>
    Comment-In-Reply-To: Alex Carutasu <alca...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages