Descriptionchromeos: makes it possible for windows to outlive WindowTreeClient
Because of shutdown ordering we need to make it so aura::Windows can
outlive WindowTreeClient. WindowTreeClient is wired in by way of every
Window having a WindowPort. For mus the WindowPort is a WindowPortMus,
which has a reference to the WindowTreeClient. Rather then having a
slew of null checks I went with making ~WindowTreeClient reset the
WindowPorts to a no-op WindowPort during shutdown.
BUG=723825
TEST=covered by tests
R=erg@chromium.org
Review-Url: https://codereview.chromium.org/2897663002
Cr-Commit-Position: refs/heads/master@{#473274}
Committed: https://chromium.googlesource.com/chromium/src/+/2a454ebdc53801c9241e109db01c329c7b514770
Patch Set 1 #
Total comments: 1
Patch Set 2 : cleanup #
Messages
Total messages: 12 (7 generated)
|