Commit 00beee50 authored by Tibor Goldschwendt's avatar Tibor Goldschwendt Committed by Commit Bot

[vr] Handle SecurityException when querying VrCore version

Bug: 773256
Change-Id: I0991b5c525420384ec422d23ae7b9f6af35e7787
Reviewed-on: https://chromium-review.googlesource.com/782159Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518293}
parent a2cf70f7
......@@ -57,6 +57,9 @@ public class VrCoreVersionCheckerImpl implements VrCoreVersionChecker {
return new VrCoreInfo(null, VrCoreCompatibility.VR_OUT_OF_DATE);
}
return new VrCoreInfo(null, VrCoreCompatibility.VR_NOT_AVAILABLE);
} catch (SecurityException e) {
Log.e(TAG, "Cannot query VrCore version: " + e.toString());
return new VrCoreInfo(null, VrCoreCompatibility.VR_NOT_AVAILABLE);
}
}
......
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