Commit 88286407 authored by Tibor Goldschwendt's avatar Tibor Goldschwendt Committed by Commit Bot

[vr] Fix startup crash on platforms not supporting VR

Bug: 792098
Change-Id: If75e986571a3490c4d70e22a4748e43b517ba857
Reviewed-on: https://chromium-review.googlesource.com/809099Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521821}
parent b6e038a7
......@@ -335,7 +335,7 @@ public class VrShellDelegate
public static void maybeRegisterVrEntryHook(final ChromeActivity activity) {
// Daydream is not supported on pre-N devices.
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) return;
if (!sChromeStarted) {
if (isVrEnabled() && !sChromeStarted) {
nativeOnChromeStarted();
sChromeStarted = 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