Bug 683256 changes JNI registration such that all native methods defined in .java files are automatically registered from JNI_OnLoad().
This causes a linker error for non-arm/arm64 targets because vr_shell is including .java files that have native methods, but is not including the .cc files on the native side.
Specifically:
- VrShellDelegate and VrCoreInfo are always included in the dex
- vr_shell_delegate.cc and vr_core_info.cc are included only when enable_vr=true
We should either always include the .cc files, or exclude the .java files.
To repro, just patch in https://chromium-review.googlesource.com/c/553157/ and build with target_cpu="x86"
Comment 1 by agrieve@chromium.org
, Jun 29 2017Components: UI>Browser>VR