Index: chrome/common/BUILD.gn |
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn |
index a6a37e975cb9153a359cb3c03887858198d73f76..8167270fe79fd1da71c8a042a161e38e42a22301 100644 |
--- a/chrome/common/BUILD.gn |
+++ b/chrome/common/BUILD.gn |
@@ -145,14 +145,14 @@ static_library("common") { |
} |
# Printing. |
- if (printing_mode == 0) { |
+ if (!enable_basic_printing && !enable_print_preview) { |
sources -= [ |
"print_messages.cc", |
"print_messages.h", |
] |
} else { |
deps += [ "//printing" ] |
- if (printing_mode == 1) { |
+ if (enable_print_preview) { |
# Full printing support. |
sources += rebase_path( |
gypi_values.chrome_common_service_process_sources, |