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

Issue 1921403002: Pin apps from prefs on the mash shelf. (Closed)

Created:
4 years, 8 months ago by msw
Modified:
4 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pin apps from prefs on the mash shelf. Add ShelfController::SetItemImage (for async icon loading). Nix ChromeLauncherController::AppTabHelper pure-virtual interface. Rename LauncherControllerHelper; move LauncherItemController::GetAppTitle there. Add GetPinnedAppsFromPrefs, refactored from CLC::GetListOfPinnedAppsAndBrowser. Use AppIconLoader in ChromeMashShelfController like ChromeLauncherController. Only use ChromeMashShelfController when use_ash=1. (non-USE_ASH builds will lack profile-specific shelf integration) TODO: Consolidate AppIconLoader use (or refactor)? TODO: Support pinning/unpinning items in mash. TODO: Support launching pinned items, context menus, etc. BUG=557406 R=sky@chromium.org TEST=Mash shelf shows items pinned from profile prefs. Committed: https://crrev.com/eee6c893709538dff16463312e72031cdd8b8c01 Cr-Commit-Position: refs/heads/master@{#391171}

Patch Set 1 #

Patch Set 2 : Get item images via AppIconLoader, like ChromeLauncherController. #

Patch Set 3 : Get extension and arc app titles. #

Patch Set 4 : Renaming; cleanup. #

Patch Set 5 : Sync and rebase. #

Patch Set 6 : Only include arc for cros. #

Total comments: 7

Patch Set 7 : Address comments; cleanup. #

Patch Set 8 : Sync and rebase. #

Total comments: 2

Patch Set 9 : Move GetAppTitle to LauncherControllerHelper; include on non-ash builds. #

Patch Set 10 : Address comment. #

Patch Set 11 : Only use ChromeMashShelfController with use_ash=1. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -456 lines) Patch
M ash/mus/shelf_delegate_mus.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/shelf_delegate_mus.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.h View 1 2 3 4 5 6 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 4 5 6 7 8 9 3 chunks +68 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 7 6 chunks +5 lines, -30 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 15 chunks +20 lines, -131 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 5 6 7 12 chunks +35 lines, -37 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.h View 1 2 3 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +74 lines, -14 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_app_tab_helper.h View 1 2 3 4 5 6 1 chunk +0 lines, -33 lines 0 comments Download
D chrome/browser/ui/ash/launcher/launcher_app_tab_helper.cc View 1 2 3 4 5 6 1 chunk +0 lines, -120 lines 0 comments Download
A chrome/browser/ui/ash/launcher/launcher_controller_helper.h View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/launcher_controller_helper.cc View 1 2 3 4 5 6 7 8 5 chunks +48 lines, -22 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -45 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -4 lines 0 comments Download
M mash/shelf/public/interfaces/shelf.mojom View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (25 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/60001
4 years, 8 months ago (2016-04-27 01:08:48 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/25543) ios_dbg_simulator_ninja on ...
4 years, 8 months ago (2016-04-27 01:10:59 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/80001
4 years, 8 months ago (2016-04-27 02:13:17 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/128363) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 8 months ago (2016-04-27 02:31:58 UTC) #11
msw
Hey Scott, please take a look; thanks!
4 years, 7 months ago (2016-04-27 18:49:58 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/100001
4 years, 7 months ago (2016-04-27 18:50:03 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/204762)
4 years, 7 months ago (2016-04-27 19:18:36 UTC) #16
sky
https://codereview.chromium.org/1921403002/diff/100001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/1921403002/diff/100001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode171 chrome/browser/ui/ash/chrome_launcher_prefs.cc:171: void UpdatePinnedApps(const std::string& app_id, I see you're just moving ...
4 years, 7 months ago (2016-04-27 21:01:34 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/120001
4 years, 7 months ago (2016-04-29 20:56:59 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/27612) ios_dbg_simulator_ninja on ...
4 years, 7 months ago (2016-04-29 20:59:56 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/160001
4 years, 7 months ago (2016-04-29 22:14:40 UTC) #24
msw
Please take another look; thanks! https://codereview.chromium.org/1921403002/diff/100001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/1921403002/diff/100001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode177 chrome/browser/ui/ash/chrome_launcher_prefs.cc:177: *chrome_icon_added = true; On ...
4 years, 7 months ago (2016-04-29 22:30:50 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/14855)
4 years, 7 months ago (2016-04-29 22:47:15 UTC) #28
sky
LGTM - Don't worry about reverting to original code with minimal changes https://codereview.chromium.org/1921403002/diff/160001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc ...
4 years, 7 months ago (2016-05-02 15:21:48 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/180001
4 years, 7 months ago (2016-05-02 19:07:46 UTC) #31
msw
Hey Scott, please take another quick look; I moved GetAppTitle to LauncherControllerHelper, and now include ...
4 years, 7 months ago (2016-05-02 20:01:09 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/200001
4 years, 7 months ago (2016-05-02 20:02:25 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 21:21:04 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/220001
4 years, 7 months ago (2016-05-02 22:57:03 UTC) #39
msw
Hey Scott, please take another look; thanks!
4 years, 7 months ago (2016-05-02 23:51:10 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 00:20:11 UTC) #43
sky
LGTM
4 years, 7 months ago (2016-05-03 03:58:23 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921403002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921403002/220001
4 years, 7 months ago (2016-05-03 04:51:50 UTC) #46
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 7 months ago (2016-05-03 04:57:17 UTC) #48
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 04:58:47 UTC) #50
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/eee6c893709538dff16463312e72031cdd8b8c01
Cr-Commit-Position: refs/heads/master@{#391171}

Powered by Google App Engine
This is Rietveld 408576698