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

Issue 2177663002: mash: Move ownership of ShelfDelegate to WmShell (Closed)

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

Description

mash: Move ownership of ShelfDelegate to WmShell This removes some ash::Shell access in the shelf, which we need to eliminate to port to mus. * Move ShelfDelegate to //ash/common * Move ownership to WmShell * Move ShelfDelegate creation slightly earlier by doing it on Shelf creation, rather than lazily on access. It can't happen in WmShell::Initialize() because Chrome's implementation depends on the user being logged in. TODO: Fix ash::ShelfWindowWatcher ownership and creation time. BUG=629244 TEST=ash_unittests, chrome unit_tests and browser_tests TBR=rockot@chromium.org Committed: https://crrev.com/ff5220bf49573c720e26bfa025011fa198038f27 Cr-Commit-Position: refs/heads/master@{#407497}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : Fix WallpaperManagerBrowserTest #

Total comments: 11

Patch Set 4 : Fix child account wallpaper tests #

Patch Set 5 : cleanup #

Patch Set 6 : review comments #

Patch Set 7 : fix wallpaper tests again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -167 lines) Patch
M ash/ash.gyp View 2 chunks +1 line, -1 line 0 comments Download
A + ash/common/shelf/shelf_delegate.h View 3 chunks +4 lines, -5 lines 0 comments Download
M ash/common/wm_shell.h View 5 chunks +8 lines, -0 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 4 5 4 chunks +21 lines, -0 lines 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M ash/shelf/shelf.h View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 5 5 chunks +10 lines, -8 lines 0 comments Download
D ash/shelf/shelf_delegate.h View 1 chunk +0 lines, -65 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 3 chunks +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell.h View 1 3 chunks +0 lines, -5 lines 0 comments Download
M ash/shell.cc View 1 5 chunks +13 lines, -15 lines 0 comments Download
M ash/shell/shelf_delegate_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/shelf_delegate_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/sysui_application.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M ash/test/shelf_test_api.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M ash/test/shell_test_api.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/test/shell_test_api.cc View 1 2 chunks +0 lines, -5 lines 0 comments Download
M ash/test/test_shelf_delegate.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 3 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc View 4 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 41 (30 generated)
James Cook
msw, please take a look at everything stevenjb, please take a look at chrome/browser/chromeos Thanks. ...
4 years, 5 months ago (2016-07-22 23:37:01 UTC) #11
msw
Sorry I keep asking 'why'... https://codereview.chromium.org/2177663002/diff/40001/ash/common/wm_shell.cc File ash/common/wm_shell.cc (right): https://codereview.chromium.org/2177663002/diff/40001/ash/common/wm_shell.cc#newcode206 ash/common/wm_shell.cc:206: void WmShell::CreateShelfDelegate() { Could ...
4 years, 5 months ago (2016-07-23 00:02:37 UTC) #16
James Cook
msw, please take another look. Given that you can't actually create the ShelfDelegate at an ...
4 years, 5 months ago (2016-07-23 00:38:03 UTC) #19
msw
I guess explicit init and potential for null is clearer; but it'd be nicest if ...
4 years, 5 months ago (2016-07-23 00:54:09 UTC) #20
stevenjb
lgtm
4 years, 5 months ago (2016-07-25 15:59:19 UTC) #27
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/2177663002/120001
4 years, 5 months ago (2016-07-25 16:20:39 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/224275)
4 years, 5 months ago (2016-07-25 16:26:30 UTC) #32
James Cook
TBR rockot for mechanical change to chrome/browser/extensions/bookmark_app_helper.cc
4 years, 5 months ago (2016-07-25 16:45:50 UTC) #35
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/2177663002/120001
4 years, 5 months ago (2016-07-25 16:46:16 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-25 17:08:12 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 17:09:52 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ff5220bf49573c720e26bfa025011fa198038f27
Cr-Commit-Position: refs/heads/master@{#407497}

Powered by Google App Engine
This is Rietveld 408576698