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

Issue 2304443002: ash: Move ShelfWidget ownership to WmShelf and refactor access to it (Closed)

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

Description

ash: Move ShelfWidget ownership to WmShelf and refactor access to it This consolidates access to ShelfWidget in a single location. * Move ShelfWidget ownership to WmShelf * Remove RootWindowController::shelf_widget() and access it via WmShelf cleanup * Move HandleShowMessageCenterBubble to AcceleratorController because it no longer depends on the aura-only ash::RootWindowController * Eliminate WmShelf::SetShelfLayoutManager in favor of an explicit create, shutdown, destroy cycle for ShelfWidget * Move StatusAreaWidget creation slightly later, needed for above There's still some ugliness here around ShelfWidget creation/destruction order but it's better (or at least more explicit) than it was. Pure refactor, no functional changes. BUG=615502 TEST=ash_unittests, unit_tests, manual tests of login with and without a secondary display. Committed: https://crrev.com/b551aba636f950844dad415bd73e08cdc815ebd6 Cr-Commit-Position: refs/heads/master@{#415826}

Patch Set 1 #

Total comments: 2

Patch Set 2 : typo #

Total comments: 10

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -167 lines) Patch
M ash/accelerators/accelerator_controller_delegate_aura.cc View 4 chunks +0 lines, -31 lines 0 comments Download
M ash/aura/wm_root_window_controller_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/aura/wm_shelf_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/aura/wm_shelf_aura.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/accelerators/accelerator_controller.cc View 4 chunks +27 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_widget.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_widget.cc View 3 chunks +16 lines, -14 lines 0 comments Download
M ash/common/shelf/wm_shelf.h View 2 chunks +6 lines, -5 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 8 chunks +32 lines, -17 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_delegate_mus.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/bridge/wm_shelf_mus.h View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M ash/mus/bridge/wm_shelf_mus.cc View 1 2 2 chunks +7 lines, -11 lines 0 comments Download
M ash/mus/root_window_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/root_window_controller.h View 4 chunks +3 lines, -10 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 12 chunks +31 lines, -23 lines 0 comments Download
M ash/screen_util.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/shell.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/shell.cc View 1 2 6 chunks +8 lines, -20 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 2 chunks +1 line, -3 lines 0 comments Download
M ash/test/status_area_widget_test_helper.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
James Cook
msw, please take a look. https://codereview.chromium.org/2304443002/diff/1/ash/common/shelf/shelf_widget.cc File ash/common/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2304443002/diff/1/ash/common/shelf/shelf_widget.cc#newcode340 ash/common/shelf/shelf_widget.cc:340: status_area_widget_ = new StatusAreaWidget(status_container, ...
4 years, 3 months ago (2016-08-31 22:18:09 UTC) #3
msw
lgtm https://codereview.chromium.org/2304443002/diff/20001/ash/common/shelf/shelf_widget.cc File ash/common/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2304443002/diff/20001/ash/common/shelf/shelf_widget.cc#newcode339 ash/common/shelf/shelf_widget.cc:339: // TODO(jamescook): Move ownership to RootWindowController. nit: resolve ...
4 years, 3 months ago (2016-08-31 23:01:39 UTC) #7
James Cook
https://codereview.chromium.org/2304443002/diff/20001/ash/common/shelf/shelf_widget.cc File ash/common/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2304443002/diff/20001/ash/common/shelf/shelf_widget.cc#newcode339 ash/common/shelf/shelf_widget.cc:339: // TODO(jamescook): Move ownership to RootWindowController. On 2016/08/31 23:01:39, ...
4 years, 3 months ago (2016-08-31 23:33:45 UTC) #8
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/2304443002/40001
4 years, 3 months ago (2016-08-31 23:34:38 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-01 01:00:41 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 01:04:20 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b551aba636f950844dad415bd73e08cdc815ebd6
Cr-Commit-Position: refs/heads/master@{#415826}

Powered by Google App Engine
This is Rietveld 408576698