Index: build/config/BUILD.gn |
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn |
index e548f77aff6d9ea777a20ee85e15c1c88c07461e..0d0f0f438255bac52cf91cf3f7e9df5335e207e2 100644 |
--- a/build/config/BUILD.gn |
+++ b/build/config/BUILD.gn |
@@ -32,10 +32,12 @@ config("feature_flags") { |
defines = [ |
"CHROMIUM_BUILD", |
"ENABLE_EGLIMAGE=1", |
- "ENABLE_BACKGROUND=1", |
"V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
] |
+ if (enable_background) { |
+ defines += [ "ENABLE_BACKGROUND=1" ] |
+ } |
if (cld_version > 0) { |
defines += [ "CLD_VERSION=$cld_version" ] |
} |