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

Issue 2696573003: Have WindowTreeClient detect error state earlier (Closed)

Created:
3 years, 10 months ago by jonross
Modified:
3 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have WindowTreeClient detect error state earlier Currently WindowTreeClient cleans up all windows during destruction. However this masks incorrect usage of the client library. It also makes it difficult to find errors, as crashes occur later on in shutdown. This change updates the destructor to explicitly fail if there are windows. TEST=manual, mash_browser_tests BUG=678687 Review-Url: https://codereview.chromium.org/2696573003 Cr-Commit-Position: refs/heads/master@{#450968} Committed: https://chromium.googlesource.com/chromium/src/+/dcfe7f207b2b188b50b3e25eef5765b662c36455

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update Observer and check #

Patch Set 3 : Fix test exposed by new check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -30 lines) Patch
M ui/aura/mus/window_tree_client.cc View 1 1 chunk +2 lines, -22 lines 0 comments Download
M ui/aura/mus/window_tree_client_observer.h View 1 1 chunk +1 line, -6 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/pointer_watcher_event_router.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
jonross
Hey sky@ As discussed, a more aggressive way to point our incorrect usage of WindowTreeClient, ...
3 years, 10 months ago (2017-02-13 21:25:40 UTC) #2
sky
https://codereview.chromium.org/2696573003/diff/1/ui/aura/mus/window_tree_client.cc File ui/aura/mus/window_tree_client.cc (right): https://codereview.chromium.org/2696573003/diff/1/ui/aura/mus/window_tree_client.cc#newcode187 ui/aura/mus/window_tree_client.cc:187: DCHECK(windows_.empty()); I'm ok with making this a CHECK as ...
3 years, 10 months ago (2017-02-13 23:16:15 UTC) #3
jonross
https://codereview.chromium.org/2696573003/diff/1/ui/aura/mus/window_tree_client.cc File ui/aura/mus/window_tree_client.cc (right): https://codereview.chromium.org/2696573003/diff/1/ui/aura/mus/window_tree_client.cc#newcode187 ui/aura/mus/window_tree_client.cc:187: DCHECK(windows_.empty()); On 2017/02/13 23:16:15, sky wrote: > I'm ok ...
3 years, 10 months ago (2017-02-14 20:35:21 UTC) #4
sky
LGTM
3 years, 10 months ago (2017-02-14 22:52:06 UTC) #5
jonross
3 years, 10 months ago (2017-02-15 14:46:08 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/2696573003/20001
3 years, 10 months ago (2017-02-15 19:16:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/322617)
3 years, 10 months ago (2017-02-15 21:05:01 UTC) #10
jonross
The new CHECK found an error with a test. It wasn't deleting its widgets before ...
3 years, 10 months ago (2017-02-15 21:49:06 UTC) #11
sky
LGTM
3 years, 10 months ago (2017-02-15 23:29:36 UTC) #12
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/2696573003/40001
3 years, 10 months ago (2017-02-16 02:12:18 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/391328)
3 years, 10 months ago (2017-02-16 04:09:26 UTC) #16
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/2696573003/40001
3 years, 10 months ago (2017-02-16 14:23:38 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 15:16:54 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/dcfe7f207b2b188b50b3e25eef57...

Powered by Google App Engine
This is Rietveld 408576698