Refactor TopmostWindowObserver to be EventObserver
It has been an window observer + pre-target event handler to conduct the watching of topmost windows. During debugging of a test of tab-dragging, I've noticed that this can't deal with the destruction of the root window itself. Actually, it doesn't have to be a pre-target event handler anymore since there's EventObserver now. BUG=890071 TEST=existing ash_unittests / services_unittests pass Change-Id: Ic6750700e73fd3694be5aa00f080f3019e4fbd95 Reviewed-on: https://chromium-review.googlesource.com/c/1303034 Commit-Queue: Jun Mukai <mukai@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#603286}
Showing
Please register or sign in to comment