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

Issue 2451863003: mus: Fix a teardown crash. (Closed)

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

Description

mus: Fix a teardown crash. FrameGenerator installs itself as an observer to a number of windows. When a window is destroyed, it removes itself from the observer list. However, if the FrameGenerator is destroyed before the windows (which is the case during teardown), then FrameGenerator does not remove itself from the set of observers for the windows. To fix this, change FrameGenerator to use the ServerWindowTracker to track the windows, so that it is correctly removed from the observer list during tear down. BUG=658753 Committed: https://crrev.com/5c957cc407f5599935fdb3a2de0c5a80415e9557 Cr-Commit-Position: refs/heads/master@{#428082}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M services/ui/ws/frame_generator.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
sadrul-g
I looked into adding a test, but the window/surface management in FrameGenerator is going away ...
4 years, 1 month ago (2016-10-26 16:06:12 UTC) #9
sadrul-g
+sky@
4 years, 1 month ago (2016-10-26 16:07:48 UTC) #11
sky
LGTM https://codereview.chromium.org/2451863003/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2451863003/diff/20001/services/ui/ws/frame_generator.cc#newcode302 services/ui/ws/frame_generator.cc:302: ServerWindowTracker::OnWindowDestroying(window); Seems weird to call OnWindowDestroying (which is ...
4 years, 1 month ago (2016-10-26 17:48:42 UTC) #12
sadrul
https://codereview.chromium.org/2451863003/diff/20001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2451863003/diff/20001/services/ui/ws/frame_generator.cc#newcode302 services/ui/ws/frame_generator.cc:302: ServerWindowTracker::OnWindowDestroying(window); On 2016/10/26 17:48:41, sky wrote: > Seems weird ...
4 years, 1 month ago (2016-10-27 04:59:44 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/2451863003/60001
4 years, 1 month ago (2016-10-27 05:00:30 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/251384)
4 years, 1 month ago (2016-10-27 06:31:14 UTC) #22
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/2451863003/60001
4 years, 1 month ago (2016-10-27 17:03:05 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-27 18:23:02 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 18:30:51 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5c957cc407f5599935fdb3a2de0c5a80415e9557
Cr-Commit-Position: refs/heads/master@{#428082}

Powered by Google App Engine
This is Rietveld 408576698