Commit f05a24a4 authored by mthiesse's avatar mthiesse Committed by Commit bot

VR: Don't stay in VR when exiting webVR if the activity doesn't support VR browsing.

BUG=718610

Review-Url: https://codereview.chromium.org/2862993002
Cr-Commit-Position: refs/heads/master@{#469525}
parent 4a9839a2
......@@ -614,7 +614,7 @@ public class VrShellDelegate implements ApplicationStatus.ActivityStateListener,
private boolean exitWebVRPresent() {
if (!mInVr) return false;
mVrShell.setWebVrModeEnabled(false);
if (!isVrShellEnabled(mVrSupportLevel)) {
if (!isVrShellEnabled(mVrSupportLevel) || !activitySupportsVrBrowsing(mActivity)) {
shutdownVr(false /* isPausing */, true /* showTransition */);
}
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment