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

Issue 2835063003: mash: Use ChromeLauncherControllerImpl, remove Mus subclass stub. (Closed)

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

Description

mash: Use ChromeLauncherControllerImpl, remove Mus subclass stub. Use ChromeLauncherControllerImpl in mash with a fake ShelfModel. Update BrowserShortcutLauncherItemController to not crash in mash: -Use BrowserList::GetLastActive instead of ash::wm::GetActiveWindow. -Use the locally cached |shelf_model_| instead of Shell's accessor. Avoid crashes by disabling some behavior in mash (no Shell): -Skip BrowserStatusMonitor's activation client observation. -Skip ChromeLauncherController's SystemTrayDelegate & Keyboard use. -Use a stub MultiUserWindowManager instance. Remove unused ChromeLauncherControllerMus stub. TODO: Fix disabled behavior and bad interaction in mash. BUG=557406 TEST=No classic Chrome OS or chrome --mash behavior changes. R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2835063003 Cr-Commit-Position: refs/heads/master@{#467228} Committed: https://chromium.googlesource.com/chromium/src/+/6fd672f43f11c93d78c93f39c9d0fb9a50d98375

Patch Set 1 #

Patch Set 2 : Refine; use IsRunningInMash, add TODOs. #

Patch Set 3 : Use CLCImpl for LauncherControllers, etc.; expose ShelfModel pointer. #

Total comments: 4

Patch Set 4 : Add comment and separate mash-only members. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -391 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_controller.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_controller.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 2 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 6 chunks +21 lines, -23 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 3 chunks +17 lines, -10 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 chunk +0 lines, -84 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 chunk +0 lines, -231 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 4 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 4 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
msw
Hey James, please take a look; thanks! Note: if this still has any mash_browser_test failures, ...
3 years, 8 months ago (2017-04-25 22:37:29 UTC) #11
James Cook
Code looks good but one question. https://codereview.chromium.org/2835063003/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h (right): https://codereview.chromium.org/2835063003/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h#newcode107 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h:107: ash::ShelfModel* shelf_model() const ...
3 years, 8 months ago (2017-04-26 01:03:26 UTC) #14
msw
https://codereview.chromium.org/2835063003/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h (right): https://codereview.chromium.org/2835063003/diff/40001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h#newcode107 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h:107: ash::ShelfModel* shelf_model() const { return model_; } On 2017/04/26 ...
3 years, 8 months ago (2017-04-26 01:35:15 UTC) #15
James Cook
Got it. LGTM
3 years, 8 months ago (2017-04-26 01:52:59 UTC) #18
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/2835063003/60001
3 years, 8 months ago (2017-04-26 03:16:38 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 04:00:50 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6fd672f43f11c93d78c93f39c9d0...

Powered by Google App Engine
This is Rietveld 408576698