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

Issue 2365243003: Fixes possible crash in ~Display (Closed)

Created:
4 years, 2 months ago by sky
Modified:
4 years, 2 months ago
Reviewers:
sadrul
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes possible crash in ~Display If the root of a WindowTree associated with the window manager was removed and the associated WindowTree destroyed, then Display would still have a reference to the WindowManagerState resulting in a possible crash. WindowServer::DestroyTree() had code to handle this case, but it looked up the Display using the roots of the WindowTree, so that once the roots were removed the Display couldn't be found. Fix is to move logic to ~WindowManagerState. BUG=none TEST=covered by test R=sadrul@chromium.org Committed: https://crrev.com/303a16654cc0cc8ef9eeacaccd122dc59cc16f83 Cr-Commit-Position: refs/heads/master@{#421196}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -14 lines) Patch
M services/ui/ws/window_manager_state.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 2 chunks +25 lines, -0 lines 0 comments Download
M services/ui/ws/window_server.cc View 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
sky
4 years, 2 months ago (2016-09-26 21:55:07 UTC) #1
sadrul
lgtm
4 years, 2 months ago (2016-09-27 00:56:10 UTC) #6
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/2365243003/1
4 years, 2 months ago (2016-09-27 13:13:56 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-27 13:56:19 UTC) #9
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 13:57:45 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/303a16654cc0cc8ef9eeacaccd122dc59cc16f83
Cr-Commit-Position: refs/heads/master@{#421196}

Powered by Google App Engine
This is Rietveld 408576698