Index: ui/gfx/BUILD.gn |
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn |
index 6c38dea81c853ad487cbb210e131cbe41668d6cf..595f3d021985175a377bea39585c8da36d26d8a8 100644 |
--- a/ui/gfx/BUILD.gn |
+++ b/ui/gfx/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
import("//build/config/ui.gni") |
+import("//device/vr/features.gni") |
import("//testing/test.gni") |
import("//testing/libfuzzer/fuzzer_test.gni") |
@@ -330,8 +331,8 @@ component("gfx") { |
sources -= [ "canvas_notimplemented.cc" ] |
} |
- # Desktop only. |
- if (use_aura || (!is_ios && !is_android)) { |
+ # Desktop and Android+VR only. |
+ if (use_aura || (!is_ios && !is_android) || (is_android && enable_vr)) { |
sources += [ |
"paint_vector_icon.cc", |
"paint_vector_icon.h", |