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

Issue 2650123002: mus: Make sure WindowCompositorFrameSink is detached correctly. (Closed)

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

Description

mus: Make sure WindowCompositorFrameSink is detached correctly. WindowCompositorFrameSink is detached from the client on the same thread it is attached to the client, which can be different from the thread it is created/destroyed on. So, all the thread-hostile objects created during attachment (i.e. in BindToClient()) needs to be destroyed during detach (i.e. in DetachFromClient()), because otherwise they will be destroyed during the destruction of a WindowCompositorFrameSink on a different thread, causing crashes etc. |client_binding_| is such a thread-hostile object, so make sure it is destroyed during detach. BUG=672913 Review-Url: https://codereview.chromium.org/2650123002 Cr-Commit-Position: refs/heads/master@{#445761} Committed: https://chromium.googlesource.com/chromium/src/+/5c0ead04050ee0787ef0d9af45efc3c740571465

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M services/ui/public/cpp/window_compositor_frame_sink.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
sadrul
3 years, 11 months ago (2017-01-24 02:33:44 UTC) #4
Fady Samuel
Drive-by LGTM. Also, can I have OWNERship of this file?
3 years, 11 months ago (2017-01-24 02:34:47 UTC) #6
sky
LGTM
3 years, 11 months ago (2017-01-24 17:46:44 UTC) #9
sadrul
On 2017/01/24 02:34:47, Fady Samuel wrote: > Drive-by LGTM. Also, can I have OWNERship of ...
3 years, 11 months ago (2017-01-24 17:47:04 UTC) #10
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/2650123002/1
3 years, 11 months ago (2017-01-24 18:10:39 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 18:16:18 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5c0ead04050ee0787ef0d9af45ef...

Powered by Google App Engine
This is Rietveld 408576698