Refactor supervised_user_interstitial_tab_closer to avoid tab_strip_model.h Replace TabStripModel usage with BrowserWindowInterface::GetAllTabInterfaces() to check tab count, and remove the includes of browser.h and tab_strip_model.h. The tab count check is equivalent, and the removed DCHECK on GetIndexOfWebContents was redundant since FindBrowserWithTab already guarantees the web contents belongs to the returned browser. This prepares the file to be moved out of the monolith into //chrome/browser/supervised_user:impl, where depending on //chrome/browser/ui/tabs:tab_strip would create a circular dependency. Bug: 353332589 Change-Id: Ia7ec35309ae067563ed6a044fc7d069d849de088 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7761321 Reviewed-by: Darryl James <dljames@chromium.org> Commit-Queue: Tiago Vignatti <tvignatti@igalia.com> Cr-Commit-Position: refs/heads/main@{#1616469}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.