Index: chrome/browser/BUILD.gn |
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn |
index b118e85083ab74e50187359ac293260c31022134..cc431616e260946987ada8d229e5db694d9be447 100644 |
--- a/chrome/browser/BUILD.gn |
+++ b/chrome/browser/BUILD.gn |
@@ -449,7 +449,7 @@ static_library("browser") { |
".", "//chrome") |
} |
- if (printing_mode != 0) { |
+ if (enable_basic_printing || enable_print_preview) { |
# Some form of printing support. |
sources += rebase_path(gypi_values.chrome_browser_basic_printing_sources, |
".", "//chrome") |
@@ -460,11 +460,11 @@ static_library("browser") { |
sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources, |
".", "//chrome") |
} |
- if (printing_mode == 1) { |
+ if (enable_print_preview) { |
# Full printing on top of the above. |
sources += rebase_path(gypi_values.chrome_browser_full_printing_sources, |
".", "//chrome") |
- } else if (printing_mode == 2) { |
+ } else { |
# Partial-only printing support. |
sources += rebase_path( |
gypi_values.chrome_browser_basic_only_printing_sources, |