Support batch WebStateList mutations in BreadcrumbManagerBrowserAgent
WebStateList supports batch operation (f.e. used in Close All Tabs and Undo Close All Tabs actions). These batch operations may call the same WebStateListObserver callback multiple times which creates a lot of noise in breadcrumb logs. This CL adds support for Insert and Close batch operations and only logs the number of inserted or closed WebState objects. Additional changes: - Remove WebStateDetachedAt because it's always coupled with WillCloseWebStateAt and does not add anything on its own - Remove _ from "Browser_<id>" to be consistent with logging "Tab<id>" Bug: 1046231 Change-Id: I11429a281bf8d7c343132c02e4b92f463aa8a7ea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082484 Commit-Queue: Mike Dougherty <michaeldo@chromium.org> Auto-Submit: Eugene But <eugenebut@chromium.org> Reviewed-by:Mike Dougherty <michaeldo@chromium.org> Cr-Commit-Position: refs/heads/master@{#746289}
Showing
Please register or sign in to comment