Remove conditional use of LayerTreeView from RenderWidget.

The LayerTreeView is always present since we always composite
RenderWidgets now (for many years ^_^).

However, the LayerTreeView *is* removed during shutdown. Most places
will not need to worry about this because OnClose() drops the IPC
channel and most uses of LayerTreeView are in response to other IPCs.

However a few cases involve calls from Blink which could still be
active in between OnClose() and tearing down the RenderWidget+Blink,
so in these cases early out if |closing_| which represents better
conceptually what we're testing.

TBR=avi@chromium.org

Change-Id: Iff9133d9c69b327495f9290afcb471739124018b
Bug: 912193
Reviewed-on: https://chromium-review.googlesource.com/c/1432132
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Albert J. Wong <ajwong@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625473}
1 file changed