[bedrock] Migrate BrowserListObserver to BrowserCollectionObserver - part 5/n [chromium/src : main]

0 views
Skip to first unread message

Qikai Zhong (Gerrit)

unread,
Jan 23, 2026, 3:54:12 AMJan 23
to Zhentao Lu, Tom Lukaszewicz, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
Attention needed from Tom Lukaszewicz and Zhentao Lu

Qikai Zhong added 2 comments

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

Hi, leave one comment.

File chrome/browser/ash/system_web_apps/apps/media_app/DEPS
Line 1, Patchset 6 (Latest):include_rules = [
Qikai Zhong . unresolved

It seems more appropriate to use
`chrome/browser/ash/system_web_apps/apps/DEPS`.
But I am not sure, @tl...@chromium.org please help take a look~

Open in Gerrit

Related details

Attention is currently required from:
  • Tom Lukaszewicz
  • Zhentao Lu
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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
Gerrit-Change-Number: 7509785
Gerrit-PatchSet: 6
Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
Gerrit-Attention: Zhentao Lu <zhent...@microsoft.com>
Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Jan 2026 08:53:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Lukaszewicz (Gerrit)

unread,
Jan 26, 2026, 12:54:12 PMJan 26
to Zhentao Lu, Qikai Zhong, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
Attention needed from Zhentao Lu

Tom Lukaszewicz added 3 comments

File chrome/browser/ash/system_web_apps/apps/media_app/DEPS
Qikai Zhong . unresolved

It seems more appropriate to use
`chrome/browser/ash/system_web_apps/apps/DEPS`.
But I am not sure, @tl...@chromium.org please help take a look~

Tom Lukaszewicz

Agree with Qikai we should reuse `chrome/browser/ash/system_web_apps/apps/DEPS` for simplicity (if ChromeOS owners disagree we can change this again later).

File chrome/browser/ui/ash/desks/desks_client_browsertest.cc
Line 432, Patchset 6 (Latest): ~BrowsersAddedObserver() override { browser_collection_observation_.Reset(); }
Tom Lukaszewicz . unresolved

nit: Shouldn't be needed and we can make this `~BrowsersAddedObserver() override = default`

File chrome/browser/ui/ash/multi_user/multi_user_window_manager_browser_adaptor.cc
Line 87, Patchset 6 (Latest): browser_collection_observation_.Reset();
Tom Lukaszewicz . unresolved

nit: We should be able to drop this also

Open in Gerrit

Related details

Attention is currently required from:
  • Zhentao Lu
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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
Gerrit-Change-Number: 7509785
Gerrit-PatchSet: 6
Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
Gerrit-Attention: Zhentao Lu <zhent...@microsoft.com>
Gerrit-Comment-Date: Mon, 26 Jan 2026 17:53:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Qikai Zhong <qikai...@microsoft.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Zhentao Lu (Gerrit)

unread,
Feb 11, 2026, 5:13:17 AM (yesterday) Feb 11
to Tom Lukaszewicz, Qikai Zhong, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
Attention needed from Qikai Zhong and Tom Lukaszewicz

Zhentao Lu added 3 comments

File chrome/browser/ash/system_web_apps/apps/media_app/DEPS
Line 1, Patchset 6:include_rules = [
Qikai Zhong . resolved

It seems more appropriate to use
`chrome/browser/ash/system_web_apps/apps/DEPS`.
But I am not sure, @tl...@chromium.org please help take a look~

Tom Lukaszewicz

Agree with Qikai we should reuse `chrome/browser/ash/system_web_apps/apps/DEPS` for simplicity (if ChromeOS owners disagree we can change this again later).

Zhentao Lu

Done. I am only adding some specific including rules for the browser test. The DEPS is automatically reused here.

File chrome/browser/ui/ash/desks/desks_client_browsertest.cc
Line 432, Patchset 6: ~BrowsersAddedObserver() override { browser_collection_observation_.Reset(); }
Tom Lukaszewicz . resolved

nit: Shouldn't be needed and we can make this `~BrowsersAddedObserver() override = default`

Zhentao Lu

Done

File chrome/browser/ui/ash/multi_user/multi_user_window_manager_browser_adaptor.cc
Line 87, Patchset 6: browser_collection_observation_.Reset();
Tom Lukaszewicz . resolved

nit: We should be able to drop this also

Zhentao Lu

Done

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 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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
    Gerrit-Change-Number: 7509785
    Gerrit-PatchSet: 11
    Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
    Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
    Gerrit-Attention: Qikai Zhong <qikai...@microsoft.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Feb 2026 10:12:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Qikai Zhong <qikai...@microsoft.com>
    Comment-In-Reply-To: Tom Lukaszewicz <tl...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Qikai Zhong (Gerrit)

    unread,
    Feb 11, 2026, 5:16:32 AM (yesterday) Feb 11
    to Zhentao Lu, Tom Lukaszewicz, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
    Attention needed from Tom Lukaszewicz and Zhentao Lu

    Qikai Zhong voted and added 1 comment

    Votes added by Qikai Zhong

    Code-Review+1

    1 comment

    Patchset-level comments
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Tom Lukaszewicz
    • Zhentao Lu
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
      Gerrit-Change-Number: 7509785
      Gerrit-PatchSet: 11
      Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
      Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
      Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
      Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
      Gerrit-Attention: Zhentao Lu <zhent...@microsoft.com>
      Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
      Gerrit-Comment-Date: Wed, 11 Feb 2026 10:16:00 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Tom Lukaszewicz (Gerrit)

      unread,
      Feb 11, 2026, 5:44:18 PM (13 hours ago) Feb 11
      to Zhentao Lu, Hidehiko Abe, Qikai Zhong, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
      Attention needed from Hidehiko Abe and Zhentao Lu

      Tom Lukaszewicz added 2 comments

      Patchset-level comments
      Tom Lukaszewicz . resolved

      Small comment but otherwise lgtm, hidehiko could you ptal?

      File chrome/browser/ash/system_web_apps/apps/media_app/media_app_integration_browsertest.cc
      Line 285, Patchset 11 (Latest):class BrowserWindowWaiter : public BrowserCollectionObserver {
      Tom Lukaszewicz . unresolved

      We can probably remove this class and just replace the only callsite in this file with `ui_test_utils::BrowserCreatedObserver().Wait()`. (avoids the need for BUILD / DEPS updates since this test already depends on ui_test_utils)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hidehiko Abe
      • Zhentao Lu
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
        Gerrit-Change-Number: 7509785
        Gerrit-PatchSet: 11
        Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
        Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
        Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
        Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
        Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
        Gerrit-Attention: Zhentao Lu <zhent...@microsoft.com>
        Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
        Gerrit-Comment-Date: Wed, 11 Feb 2026 22:43:41 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Zhentao Lu (Gerrit)

        unread,
        12:21 AM (6 hours ago) 12:21 AM
        to Hidehiko Abe, Qikai Zhong, Tom Lukaszewicz, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
        Attention needed from Hidehiko Abe, Qikai Zhong and Tom Lukaszewicz

        Zhentao Lu added 1 comment

        File chrome/browser/ash/system_web_apps/apps/media_app/media_app_integration_browsertest.cc
        Line 285, Patchset 11:class BrowserWindowWaiter : public BrowserCollectionObserver {
        Tom Lukaszewicz . resolved

        We can probably remove this class and just replace the only callsite in this file with `ui_test_utils::BrowserCreatedObserver().Wait()`. (avoids the need for BUILD / DEPS updates since this test already depends on ui_test_utils)

        Zhentao Lu

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Hidehiko Abe
        • Qikai Zhong
        • 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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
          Gerrit-Change-Number: 7509785
          Gerrit-PatchSet: 12
          Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
          Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
          Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
          Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
          Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
          Gerrit-Attention: Qikai Zhong <qikai...@microsoft.com>
          Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
          Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
          Gerrit-Comment-Date: Thu, 12 Feb 2026 05:21:00 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Tom Lukaszewicz <tl...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Qikai Zhong (Gerrit)

          unread,
          12:42 AM (6 hours ago) 12:42 AM
          to Zhentao Lu, Hidehiko Abe, Tom Lukaszewicz, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, cros-essential...@chromium.org, feature-me...@chromium.org, rrsilva+wat...@google.com
          Attention needed from Hidehiko Abe, Tom Lukaszewicz and Zhentao Lu

          Qikai Zhong voted and added 1 comment

          Votes added by Qikai Zhong

          Code-Review+1

          1 comment

          Patchset-level comments
          Qikai Zhong . resolved

          LGTM

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Hidehiko Abe
          • Tom Lukaszewicz
          • Zhentao Lu
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not 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: Ib8831321ae002c49dc77c407b2ad1cc9662dbf21
            Gerrit-Change-Number: 7509785
            Gerrit-PatchSet: 12
            Gerrit-Owner: Zhentao Lu <zhent...@microsoft.com>
            Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
            Gerrit-Reviewer: Qikai Zhong <qikai...@microsoft.com>
            Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
            Gerrit-Reviewer: Zhentao Lu <zhent...@microsoft.com>
            Gerrit-Attention: Zhentao Lu <zhent...@microsoft.com>
            Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
            Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
            Gerrit-Comment-Date: Thu, 12 Feb 2026 05:41:46 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages