A recent upstream change migrated `chrome::GetTotalBrowserCount()` to use `GlobalBrowserCollection` instead of `BrowserList`. During browser test shutdown, `GlobalBrowserCollection` is no longer valid by the time `TearDownInProcessBrowserTestFixture()` runs, causing a crash when the test queries the browser count. Move the assertion to `TearDownOnMainThread()` where the browser infrastructure is still alive. Chromium changes: https://chromium.googlesource.com/chromium/src/+/eaf9b1a7ff97299c7203a48c6f1c10cfffa0e97b commit eaf9b1a7ff97299c7203a48c6f1c10cfffa0e97b Author: Thomas Lukaszewicz <tluk@chromium.org> Date: Mon Mar 2 13:38:03 2026 -0800 [bedrock] Remove BrowserListEnumerator Bypass-Check-License: file move in upstream CL Bug: 441824481 Change-Id: I64b00c40749006d0df40946134355a54eabe03c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7537385 Commit-Queue: Tom Lukaszewicz <tluk@chromium.org> Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1592716}