diff --git a/content/content.gyp b/content/content.gyp index 1cda568d9df88..7f2895c356460 100644 --- a/content/content.gyp +++ b/content/content.gyp @@ -486,6 +486,11 @@ 'has_java_resources': 1, 'R_package': 'org.chromium.content', 'R_package_relpath': 'org/chromium/content', + 'conditions': [ + ['enable_webvr==1', { + 'additional_src_dirs': ['../content/public/android/java-optional'], + }], + ], }, 'includes': [ '../build/java.gypi' ], }, @@ -632,7 +637,7 @@ 'conditions': [ ['enable_webvr==1', { 'sources': [ - 'public/android/java/src/org/chromium/content/browser/input/CardboardVRDevice.java', + 'public/android/java-optional/src/org/chromium/content/browser/input/CardboardVRDevice.java', ], 'dependencies': [ '../third_party/cardboard-java/cardboard.gyp:cardboard_jar', diff --git a/content/public/android/java/src/org/chromium/content/browser/input/CardboardVRDevice.java b/content/public/android/java-optional/src/org/chromium/content/browser/input/CardboardVRDevice.java similarity index 100% rename from content/public/android/java/src/org/chromium/content/browser/input/CardboardVRDevice.java rename to content/public/android/java-optional/src/org/chromium/content/browser/input/CardboardVRDevice.java