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

Issue 2302673002: mash: Avoid shelf crashes on display removal. (Closed)

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

Description

mash: Avoid shelf crashes on display removal. Make ShelfWidget CloseNow in Shutdown. Call ShutdownShelfWidget() in the WmShelfMus dtor. Check for a valid shelf window in UpdateVisibilityState. BUG=641463 TEST='chrome --mash --multi-display' doesn't crash when closing the second display. R=sky@chromium.org Committed: https://crrev.com/709f84d2f2bac43662b31b9393812c8a711f6da0 Cr-Commit-Position: refs/heads/master@{#416747}

Patch Set 1 #

Patch Set 2 : sync and rebase #

Patch Set 3 : Partial cleanup. #

Patch Set 4 : Make RootWindowController use a new DisplayObserver::OnDisplayRemoving. #

Patch Set 5 : Cleanup. #

Patch Set 6 : Split ScreenBase from ScreenMus; make WindowManager a DisplayManagerObserver. #

Patch Set 7 : minor cleanup. #

Total comments: 2

Patch Set 8 : Working on it. #

Patch Set 9 : Sync and rebase. #

Patch Set 10 : Sync and rebase; remove Screen/Display changes; cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M ash/common/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M ash/common/shelf/shelf_widget.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_shelf_mus.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
msw
Hey Scott, can you take a quick look? I want to check my direction before ...
4 years, 3 months ago (2016-09-01 19:42:49 UTC) #4
sky
When a display is removed at least two things happen: 1. the roots of the ...
4 years, 3 months ago (2016-09-01 20:50:27 UTC) #9
msw
On 2016/09/01 20:50:27, sky wrote: > When a display is removed at least two things ...
4 years, 3 months ago (2016-09-01 23:37:48 UTC) #10
sky
https://codereview.chromium.org/2302673002/diff/120001/ash/mus/root_window_controller.cc File ash/mus/root_window_controller.cc (right): https://codereview.chromium.org/2302673002/diff/120001/ash/mus/root_window_controller.cc#newcode139 ash/mus/root_window_controller.cc:139: wm_shelf_->ShutdownShelfWidget(); Can this be moved to WmRootWindowController? I think ...
4 years, 3 months ago (2016-09-01 23:51:17 UTC) #11
msw
Hey Scott, please take another look; thanks! I can fix the crash much more simply ...
4 years, 3 months ago (2016-09-06 21:31:11 UTC) #13
sky
LGTM
4 years, 3 months ago (2016-09-06 22:17:02 UTC) #17
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/2302673002/180001
4 years, 3 months ago (2016-09-06 22:18:18 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-06 23:00:06 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 23:02:59 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/709f84d2f2bac43662b31b9393812c8a711f6da0
Cr-Commit-Position: refs/heads/master@{#416747}

Powered by Google App Engine
This is Rietveld 408576698