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

Issue 2052013002: Adding ChromeLauncherController interface. (Closed)

Created:
4 years, 6 months ago by mfomitchev
Modified:
4 years, 6 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, elijahtaylor+arcwatch_chromium.org, extensions-reviews_chromium.org, hidehiko+watch_chromium.org, kalyank, lhchavez+watch_chromium.org, Matt Giuca, sadrul, tapted, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@chrome_launcher_smaller_api
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding ChromeLauncherController interface. Breaking up the existing ChromeLauncherController class into ChromeLauncherController interface and ChromeLauncherControllerImpl implementation. With a few exceptions, classes that interact with ChromeLauncherController now do it through ChromeLauncherController interface. This is the first step in adding a Mustash implementation of ChromeLauncherController. ChromeLauncherControllerImpl does a lot more than implement ChromeLauncherController interface. Various parts of the code rely on this functionality. Particularly on methods from ash::ShelfDelegate that it implements. This was resolved in one of three ways: - Using ash::Shell::GetShelfDelegate() (the reason this couldn't be used everywhere is unit tests) - Using ChromeLauncherControllerImpl instead of ChromeLauncherController - Storing separate pointers for ChromeLauncherController and ash::ShellDelegate. BUG=619605 Committed: https://crrev.com/5621dd87cde37a495f22eeaaee24337eada0f826 Cr-Commit-Position: refs/heads/master@{#399527}

Patch Set 1 #

Patch Set 2 : Unit tests passing locally. #

Patch Set 3 : Rebase #

Patch Set 4 : Format. #

Patch Set 5 : Fixing browser tests. #

Patch Set 6 : Comments and cleanup #

Patch Set 7 : Updating comment. #

Total comments: 2

Patch Set 8 : Fix method order #

Total comments: 30

Patch Set 9 : Addressing nits. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -8205 lines) Patch
M chrome/browser/extensions/bookmark_app_helper.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_service_ash.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 4 5 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 7 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 7 8 2 chunks +89 lines, -353 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1858 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2300 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 6 7 8 9 chunks +99 lines, -246 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 7 8 9 87 chunks +191 lines, -185 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +25 lines, -21 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 60 chunks +77 lines, -74 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 1 chunk +0 lines, -3077 lines 0 comments Download
M chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 2 3 4 5 6 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.h View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 7 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (9 generated)
mfomitchev
4 years, 6 months ago (2016-06-10 18:14:25 UTC) #4
msw
I haven't taken a full look, but wanted to run an idea by you. https://codereview.chromium.org/2052013002/diff/120001/chrome/browser/extensions/bookmark_app_helper.cc ...
4 years, 6 months ago (2016-06-10 19:24:59 UTC) #5
mfomitchev
The usage of ash::ShellDelegate in chrome is certainly is a problem. This CL makes the ...
4 years, 6 months ago (2016-06-10 20:42:47 UTC) #6
msw
On 2016/06/10 20:42:47, mfomitchev wrote: > The usage of ash::ShellDelegate in chrome is certainly is ...
4 years, 6 months ago (2016-06-10 21:43:01 UTC) #7
msw
Mostly nits, just one bigger LauncherContextMenu question. https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc File chrome/browser/ui/ash/app_list/app_list_controller_ash.cc (right): https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc#newcode49 chrome/browser/ui/ash/app_list/app_list_controller_ash.cc:49: return ChromeLauncherController::instance()->IsOpen(id); ...
4 years, 6 months ago (2016-06-10 22:44:39 UTC) #8
mfomitchev
Ack to most nits, posted responses to some. https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc (right): https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode430 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:430: shelf_id ...
4 years, 6 months ago (2016-06-10 23:29:10 UTC) #9
msw
lgtm, hoping you'll address some nits https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc (right): https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc#newcode430 chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc:430: shelf_id = shelf_delegate_->GetShelfIDForAppID(app_id); ...
4 years, 6 months ago (2016-06-10 23:42:52 UTC) #10
mfomitchev
https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc File chrome/browser/ui/ash/app_list/app_list_controller_ash.cc (right): https://codereview.chromium.org/2052013002/diff/140001/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc#newcode49 chrome/browser/ui/ash/app_list/app_list_controller_ash.cc:49: return ChromeLauncherController::instance()->IsOpen(id); On 2016/06/10 22:44:38, msw wrote: > optional ...
4 years, 6 months ago (2016-06-13 17:29:18 UTC) #12
mfomitchev
rockot@chromium.org: Please review changes in chrome/browser/extensions/bookmark_app_helper.cc
4 years, 6 months ago (2016-06-13 17:29:37 UTC) #14
Ken Rockot(use gerrit already)
lgtm
4 years, 6 months ago (2016-06-13 17:37:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2052013002/180001
4 years, 6 months ago (2016-06-13 17:58:09 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-13 20:35:51 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 20:36:16 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 20:37:37 UTC) #23
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5621dd87cde37a495f22eeaaee24337eada0f826
Cr-Commit-Position: refs/heads/master@{#399527}

Powered by Google App Engine
This is Rietveld 408576698