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

Issue 2798173002: 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

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/2798173002 Cr-Commit-Position: refs/heads/master@{#463030} Committed: https://chromium.googlesource.com/chromium/src/+/4a3c245c97370cf05dcbe6e9dae89936042293b1

Patch Set 1 #

Patch Set 2 : Sync and rebase. #

Patch Set 3 : Remove get|set delegate helpers; cleanup. #

Total comments: 6

Patch Set 4 : Address comment; fix browser tests. #

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

Messages

Total messages: 22 (15 generated)
msw
Hey James, please take a look; thanks!
3 years, 8 months ago (2017-04-07 19:20:43 UTC) #9
James Cook
Love it. LGTM assuming the compile failures in the browser test aren't anything significant. https://codereview.chromium.org/2798173002/diff/40001/ash/common/shelf/shelf_model_observer.h ...
3 years, 8 months ago (2017-04-07 20:42:22 UTC) #13
msw
Take another look if you're interested; I fixed mostly trivial browser test compile errors and ...
3 years, 8 months ago (2017-04-07 22:02:16 UTC) #14
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/2798173002/60001
3 years, 8 months ago (2017-04-07 22:03:28 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/4a3c245c97370cf05dcbe6e9dae89936042293b1
3 years, 8 months ago (2017-04-07 22:57:25 UTC) #20
James Cook
still lgtm
3 years, 8 months ago (2017-04-07 23:12:18 UTC) #21
James Cook
3 years, 8 months ago (2017-04-08 04:41:22 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2800263002/ by jamescook@chromium.org.

The reason for reverting is: Seems to be causing unit test failures on Linux
Chrome OS debug builder, see crbug.com/709729

https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Powered by Google App Engine
This is Rietveld 408576698