VR: Fix system UI not restoring correctly when exiting VR.

On headset insertion with VrShellDelegate already created we erroneously
set the window mode before calling setWindowMode(), leading us to
incorrectly restore the system UI.

Bug: 810503
Change-Id: I7da112f5a1041dcff596e244e60d655fb3e66c33
Reviewed-on: https://chromium-review.googlesource.com/911831
Reviewed-by: Yash Malik <ymalik@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535848}
1 file changed