[iOS] Let CBDManager handle counter/remover events
- Move counter/remover observer related logic from CBDCollectionViewController to CBDManager, so it can be reused by CBDTableViewController. - Let CBDManager maintains browsing data counters upon construction. - Let CBDManager be the browsing data remover observer. Notes: - A counter gathers info about its corresponding browsing data (history, cache, etc). A counter is constructed with a callback (typically to update UI). - Two occasions when we want to restarts the counters so to keep UI updated: 1) When a CBD page is shown. 2) When a browsing data is cleared by a remover. Bug: 935350 Change-Id: Idb060bb8af67f549534df7ad24721ba2a45977f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545407 Commit-Queue: Huanzhong Huang <huanzhong@chromium.org> Reviewed-by:Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#646279}
Showing
Please register or sign in to comment