Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Issue 2811853002: reland: mash: Remove ChromeLauncherController's |id_to_item_controller_map_|. (Closed)

Created:
3 years, 8 months ago by msw
Modified:
3 years, 8 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

reland: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -253 lines) Patch
M ash/shelf/shelf_model.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/shelf/shelf_model.cc View 3 chunks +4 lines, -17 lines 0 comments Download
M ash/shelf/shelf_model_observer.h View 2 chunks +1 line, -10 lines 0 comments Download
M ash/shelf/shelf_model_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shelf/shelf_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shelf/shelf_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 6 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 23 chunks +41 lines, -107 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 6 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 12 chunks +48 lines, -56 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
msw
Hey James, please take a look; thanks!
3 years, 8 months ago (2017-04-10 19:22:14 UTC) #3
James Cook
LGTM
3 years, 8 months ago (2017-04-10 19:31:07 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811853002/1
3 years, 8 months ago (2017-04-10 19:53:55 UTC) #8
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 8 months ago (2017-04-10 20:10:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811853002/1
3 years, 8 months ago (2017-04-10 20:23:33 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 20:32:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/56f79410ed4c847b056e853b5d0b...

Powered by Google App Engine
This is Rietveld 408576698