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

Issue 2596723002: mus: Unset the cursor client during teardown. (Closed)

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

Description

mus: Unset the cursor client during teardown. DesktopWindowTreeHostMus owns the cursor client. So it is destroyed before the ~WindowTreeHostMus is called. But the WindowTreeHostMus teardown can try to access the cursor client. So it is necessary to unset the cursor client on the root-window. BUG=676184 Committed: https://crrev.com/d67bfeade6999acc5160588e8b755a6374bb6a4f Cr-Commit-Position: refs/heads/master@{#440283}

Patch Set 1 #

Total comments: 2

Patch Set 2 : test #

Total comments: 2

Patch Set 3 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -0 lines) Patch
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus_unittest.cc View 1 3 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
sadrul
4 years ago (2016-12-21 01:47:59 UTC) #4
sadrul
[ working on adding a test for this too ]
4 years ago (2016-12-21 01:52:28 UTC) #5
James Cook
LGTM with nit. A test would be nice. Feel free to do that in another ...
4 years ago (2016-12-21 04:02:31 UTC) #8
sadrul
+msw@ for the test This CL (specifically, the test) requires https://codereview.chromium.org/2596903002/ to land first. I ...
4 years ago (2016-12-21 17:45:57 UTC) #10
msw
rubber stamp lgtm https://codereview.chromium.org/2596723002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc File ui/views/mus/desktop_window_tree_host_mus.cc (right): https://codereview.chromium.org/2596723002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc#newcode194 ui/views/mus/desktop_window_tree_host_mus.cc:194: // the cursor client needs to ...
4 years ago (2016-12-21 18:06:52 UTC) #11
sadrul
https://codereview.chromium.org/2596723002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc File ui/views/mus/desktop_window_tree_host_mus.cc (right): https://codereview.chromium.org/2596723002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc#newcode194 ui/views/mus/desktop_window_tree_host_mus.cc:194: // the cursor client needs to be unset on ...
4 years ago (2016-12-21 19:21:11 UTC) #14
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/2596723002/40001
4 years ago (2016-12-22 00:35:03 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-22 00:41:49 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-22 00:44:01 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d67bfeade6999acc5160588e8b755a6374bb6a4f
Cr-Commit-Position: refs/heads/master@{#440283}

Powered by Google App Engine
This is Rietveld 408576698