Skip to content

Commit

Permalink
[vr] Fix startup crash on platforms not supporting VR
Browse files Browse the repository at this point in the history
Bug: 792098
Change-Id: If75e986571a3490c4d70e22a4748e43b517ba857
Reviewed-on: https://chromium-review.googlesource.com/809099
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521821}
  • Loading branch information
Tibor Goldschwendt authored and Commit Bot committed Dec 5, 2017
1 parent b6e038a commit 8828640
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static int getVrSupportLevel(VrDaydreamApi daydreamApi,
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;
}
Expand Down

0 comments on commit 8828640

Please sign in to comment.