Descriptionreland: mash: Remove ChromeLauncherController's |id_to_item_controller_map_|.
The original CL was reverted due to a unit_tests debug failure:
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/24583
This is the same (just sync'ed & rebased), but depends on a related fix:
https://codereview.chromium.org/2812693002
=====================================================================
ORIGINAL DESCRIPTION from https://codereview.chromium.org/2798173002:
mash: Remove ChromeLauncherController's |id_to_item_controller_map_|.
Remove CLC::id_to_item_controller_map_; rely on ShelfModel instead.
Skip removing shelf items in CLC destruction; rely on ~ShelfModel instead.
Remove CLC::[Get|Set]ShelfItemDelegate helpers; inline ShelfModel calls.
Remove moot ShelfModelObserver::OnSetShelfItemDelegate.
Rename CLC::LauncherItemClosed -> RemoveShelfItem.
Rename test helper GetAppLaunchers -> GetPinnedAppIds.
Inline ShelfModel::RemoveShelfItemDelegate helper function.
Avoid GetItemIndexForType, use GetShelfIDForAppID instead.
Use ItemTypeIsPinned helper function.
BUG=557406
TEST=Automated; no Chrome OS shelf behavior changes.
R=jamescook@chromium.org
Review-Url: https://codereview.chromium.org/2811853002
Cr-Commit-Position: refs/heads/master@{#463383}
Committed: https://chromium.googlesource.com/chromium/src/+/56f79410ed4c847b056e853b5d0bae0b5e34aac1
Patch Set 1 #Messages
Total messages: 16 (10 generated)
|