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

Issue 2870683002: ash: Remove ShelfModel id conversion functions. (Closed)

Created:
3 years, 7 months ago by msw
Modified:
3 years, 7 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, Matt Giuca, tfarina, khmel
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Remove ShelfModel id conversion functions. ShelfID is an app_id and launch_id; conversion isn't needed. Update some callers to check for ShelfItem presence instead. Lots of cleanup: remove unused code and simplify elsewhere. BUG=557406 TEST=Automated; no Chrome OS shelf behavior changes. R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2870683002 Cr-Commit-Position: refs/heads/master@{#470694} Committed: https://chromium.googlesource.com/chromium/src/+/2893fe08decf1fca698b0096e5e530eba397baa5

Patch Set 1 #

Patch Set 2 : Eliminate functions; fix callers, ash_unittests, unit_tests; cleanup. #

Patch Set 3 : Cleanup #

Patch Set 4 : Sync and rebase. #

Total comments: 18

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -558 lines) Patch
M ash/shelf/shelf_controller.h View 1 2 chunks +0 lines, -12 lines 0 comments Download
M ash/shelf/shelf_controller.cc View 1 2 2 chunks +1 line, -26 lines 0 comments Download
M ash/shelf/shelf_model.h View 1 2 3 chunks +8 lines, -28 lines 0 comments Download
M ash/shelf/shelf_model.cc View 1 4 chunks +26 lines, -51 lines 0 comments Download
M ash/shelf/shelf_model_unittest.cc View 1 2 3 4 chunks +42 lines, -48 lines 0 comments Download
M ash/shelf/shelf_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 6 chunks +8 lines, -16 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 1 2 3 4 8 chunks +26 lines, -38 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 4 2 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 1 chunk +8 lines, -13 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 14 chunks +40 lines, -92 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 4 6 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 40 chunks +128 lines, -169 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 4 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
msw
Hey James, please take a look; thanks! (no rush)
3 years, 7 months ago (2017-05-09 23:14:43 UTC) #9
James Cook
Some initial comments. I only made it as far as browser_shortcut_launcher_item_controller.cc - I'll look at ...
3 years, 7 months ago (2017-05-10 02:51:18 UTC) #12
James Cook
The rest looks good. https://codereview.chromium.org/2870683002/diff/60001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/2870683002/diff/60001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode931 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:931: shelf_ids_after.push_back(model_->items()[i].id); optional: I think it ...
3 years, 7 months ago (2017-05-10 15:56:34 UTC) #13
msw
Comments addressed, please take another look; thanks! https://codereview.chromium.org/2870683002/diff/60001/ash/shelf/shelf_model.cc File ash/shelf/shelf_model.cc (right): https://codereview.chromium.org/2870683002/diff/60001/ash/shelf/shelf_model.cc#newcode46 ash/shelf/shelf_model.cc:46: std::string GetShelfAppIdFromArcAppId(const ...
3 years, 7 months ago (2017-05-10 18:21:54 UTC) #14
James Cook
LGTM assuming the bot failures aren't serious https://codereview.chromium.org/2870683002/diff/60001/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc File chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc (right): https://codereview.chromium.org/2870683002/diff/60001/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc#newcode379 chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc:379: controller->PinAppWithID(shelf_id1.app_id); On ...
3 years, 7 months ago (2017-05-10 19:29:35 UTC) #19
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/2870683002/80001
3 years, 7 months ago (2017-05-10 20:03:52 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 20:38:40 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2893fe08decf1fca698b0096e5e5...

Powered by Google App Engine
This is Rietveld 408576698